×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

F95 Unexpected Allocate Error

F95 Unexpected Allocate Error

F95 Unexpected Allocate Error

(OP)
I'm using Lahey F95 v5.6.  I have an allocate statement:

ALLOCATE (xyzo (nface, 4, 3, 2))

which has never given a problem except when the value of nface is 43656.  When it is this value, the program terminates.  Changing the final dimension from 2 to 3 fixes the problem, a clumsy fix.

Anyone else had problems like this?  Anything magic about this number?

RE: F95 Unexpected Allocate Error

You need to post more of your code.   There's not enough information here to make a guess.   You are probably mangling memory somehow though.  Thus...  the problem "appears" to be caused by the size you try to allocate.  However... the real problem is probably elsewhere.

Also...  make sure you have the "debug" switch set when you compile the code.  You're much more likely to get a meaningful error message back when things go South.

Dan  
www.dtware.com

RE: F95 Unexpected Allocate Error

(OP)
Thanks for the response, DanTex.

I don't want to spend time on a very infrequent occurrence.  I just recalled the memory models on old compilers required that words started on a segment boundary and wondered whether something similar, but undocumented, occurred with F95.  The fact it allocates okay with either a larger or smaller value suggested that.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources