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?
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
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
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.