Fozzeebear
Technical User
I am having some strange problems with a piece of F90 coding I am currently working on.
I have a module using a number of allocatable arrays. The code runs to the point where the arrays are due to be deallocated, then fails with a SIGSEGV error during the de-allocation step.
I know the arrays are previously allocated correctly, since I am able to successfully print their contents immediately before the deallocate step.
If I temporarily comment out one de-allocate step, the code fails when it later tries to de-allocate a later array.
The de-allocations fails even if I put "STAT=junk" in the deallocate statements.
I thought one potential cause of this could be memory space being over-written. Don't know how to check for this though.
Any suggestions to the possible cause of the problem would be most welcome. I'm running out of ideas!!
I have a module using a number of allocatable arrays. The code runs to the point where the arrays are due to be deallocated, then fails with a SIGSEGV error during the de-allocation step.
I know the arrays are previously allocated correctly, since I am able to successfully print their contents immediately before the deallocate step.
If I temporarily comment out one de-allocate step, the code fails when it later tries to de-allocate a later array.
The de-allocations fails even if I put "STAT=junk" in the deallocate statements.
I thought one potential cause of this could be memory space being over-written. Don't know how to check for this though.
Any suggestions to the possible cause of the problem would be most welcome. I'm running out of ideas!!