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

very confussing probelm with fortran

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 4, 2004, 15:38
Default very confussing probelm with fortran
  #1
chinthakindi
Guest
 
Posts: n/a
Hi Friends,

I have one programme which is in Fortran. it is for postprocessing of Jet, it is having bunch of commnon blocks(arrays) which r very huge in size. I am reading the data in to seven arrays each of its size is approximately 66*98*616 first my programme was running, second time i tryed run the same programme without changing any thing, it is giving segmentation fault and fort.30 file. i reduced the array sizes, again this programme is running. I am very confussing why it is behaving like this, first time ,why this programme was running for big size arrays, why not in second time.. please help me..
  Reply With Quote

Old   June 5, 2004, 03:09
Default Re: very confussing probelm with fortran
  #2
matej
Guest
 
Posts: n/a
Hi,

The problem is realy confusing from the first look. On the other hand, it behaves typically as any other code, which has got some variables not properly declared and inicialized.

Look at the start of the source code and pray not to see a line: 'implicit *', where * is real or double precsision. If so, remove the line and declare all variables. triple check with compiler and ftkcheck tool (google it and install). try again. tell the compiler to check array boundaries, print warnings, use debugger.

matej
  Reply With Quote

Old   June 5, 2004, 14:45
Default Re: very confussing probelm with fortran
  #3
agg
Guest
 
Posts: n/a
Also try compiling with the 64 bit option.
  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
Fortran Compiler-CFX12.1 Araz CFX 12 November 2, 2014 13:46
Intrinsic Procedure 'ISNAN' in GNU FORTRAN 77 hawk Main CFD Forum 1 April 12, 2005 22:13
visual fortran Monica Main CFD Forum 1 August 28, 2004 20:45
Fortran77 or Fortran 90 Swapnil CFX 2 November 26, 2002 16:16
Why Favoring Fortran over C/C++? Zi-Wei Chiou Main CFD Forum 35 September 26, 2001 09:34


All times are GMT -4. The time now is 00:08.