|
[Sponsors] |
April 21, 2003, 10:33 |
PSLDLT error
|
#1 |
Guest
Posts: n/a
|
Running Fortran 90 code on SGI, I sometimes get the following message: PSLDLT Error: Index out of range (-1) and the program execution terminates. Can anyone familiar with this error explain me what is it? Thanks
|
|
April 21, 2003, 11:11 |
Re: PSLDLT error
|
#2 |
Guest
Posts: n/a
|
Thats simple. You probably have some arrays and you are exceeding the array limits, i.e., going below IMIN which is usually 1, or going above IMAX.
|
|
April 21, 2003, 11:21 |
Re: PSLDLT error
|
#3 |
Guest
Posts: n/a
|
Thanks, Praveen. That doesn't seem to be the problem because I am using dynamic memmory allocation for all the arrays and matrices. Or, you mean some other thing! -Malik
|
|
April 21, 2003, 11:54 |
Re: PSLDLT error
|
#4 |
Guest
Posts: n/a
|
Its not a problem with memory allocation. You are probably trying to access the array beyond its limits. This usually happens if you have some loop, look for things like
for i=1 to imax and inside you might be trying to access array(i-1) or array(i+1) endfor |
|
April 21, 2003, 12:00 |
Re: PSLDLT error
|
#5 |
Guest
Posts: n/a
|
This can be quite a headache sometimes. If by mistake you try to access ARRAY(0) or ARRAY(imax+1) which are out of the range, then some compilers just dont give any warning. This is terrible because you wont even know that there is a mistake. I once discovered this problem while tring to run my code on SGI; it did not give any error on a linux pc. I think there are compilation flags which will check for array bounds. There is a flag -fbounds-check on g77. Check your man pages.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh | gschaider | OpenFOAM Community Contributions | 300 | October 29, 2014 18:00 |
c++ libraries and solver compiling | vaina74 | OpenFOAM Installation | 13 | February 3, 2012 17:43 |
attach/detach (valve opening/closing) | phsieh2005 | OpenFOAM Running, Solving & CFD | 2 | March 21, 2009 05:18 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 20:50 |
user defined function | cfduser | CFX | 0 | April 29, 2006 10:58 |