CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Main CFD Forum

PSLDLT error

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   April 21, 2003, 10:33
Default PSLDLT error
  #1
m malik
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
  Reply With Quote

Old   April 21, 2003, 11:11
Default Re: PSLDLT error
  #2
Praveen
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.
  Reply With Quote

Old   April 21, 2003, 11:21
Default Re: PSLDLT error
  #3
m malik
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
  Reply With Quote

Old   April 21, 2003, 11:54
Default Re: PSLDLT error
  #4
Praveen
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

  Reply With Quote

Old   April 21, 2003, 12:00
Default Re: PSLDLT error
  #5
Praveen
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.
  Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM 300 October 29, 2014 19:00
c++ libraries and solver compiling vaina74 OpenFOAM Installation 13 February 3, 2012 18:43
attach/detach (valve opening/closing) phsieh2005 OpenFOAM Running, Solving & CFD 2 March 21, 2009 06: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


All times are GMT -4. The time now is 18:59.