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

my fortran problem

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 16, 2016, 11:54
Default my fortran problem
  #1
Member
 
mohammad fazli
Join Date: Sep 2015
Posts: 46
Rep Power: 3
mostanad is on a distinguished road
Hi
I am using a DO loop, that it has many subroutines in it. but the subroutines seems doesn't work. if I get in subroutines in main code the code works!!! what is problem of subroutine with do loop?
mostanad is offline   Reply With Quote

Old   September 16, 2016, 12:05
Default
  #2
Senior Member
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 1,392
Rep Power: 22
flotus1 will become famous soon enoughflotus1 will become famous soon enough
There is no inherent problem with subroutines in do-loops. The problem must be your specific implementation. Maybe if you give enough information someone can comment on that. Until then, you will have to do the usual debugging.
__________________
Please do not send me CFD-related questions via PM
flotus1 is offline   Reply With Quote

Old   September 16, 2016, 12:16
Default
  #3
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 2,940
Rep Power: 34
FMDenaro will become famous soon enoughFMDenaro will become famous soon enough
I agree, that for sure due to a programming error.
Check the variables type you pass in the call and use the debugging option.
FMDenaro is offline   Reply With Quote

Old   September 16, 2016, 16:06
Default #ind
  #4
Member
 
mohammad fazli
Join Date: Sep 2015
Posts: 46
Rep Power: 3
mostanad is on a distinguished road
Mr denaro, what does mean #ind in numbers for compiling fortran77?
mostanad is offline   Reply With Quote

Old   September 16, 2016, 16:12
Default
  #5
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 2,940
Rep Power: 34
FMDenaro will become famous soon enoughFMDenaro will become famous soon enough
Quote:
Originally Posted by mostanad View Post
Mr denaro, what does mean #ind in numbers for compiling fortran77?

your question is not clear, you get #IND as run-time error?
FMDenaro is offline   Reply With Quote

Old   September 16, 2016, 18:48
Default
  #6
Member
 
mohammad fazli
Join Date: Sep 2015
Posts: 46
Rep Power: 3
mostanad is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
your question is not clear, you get #IND as run-time error?
when i run the code at the second loop it get me numbers for example 1.#IND
then it saves information of first loop that don't have any problem.
mostanad is offline   Reply With Quote

Old   September 17, 2016, 03:29
Default
  #7
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 2,940
Rep Power: 34
FMDenaro will become famous soon enoughFMDenaro will become famous soon enough
Use all the debug option in the compilation without optimization.
Check for array bound violation, type mismatch, etc.
FMDenaro is offline   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
Problem with fortran file execution FarzinD CFX 3 May 7, 2015 04:57
problem about user fortran xyq916 CFX 0 January 27, 2015 08:38
Fortran compiler problem Luke CD-adapco 2 September 18, 2008 03:43
Problem with Fortran installation. skarp CFX 0 August 4, 2007 07:09
'C' or FORTRAN or 'C++' Yogesh Talekar Main CFD Forum 20 October 21, 1999 04:00


All times are GMT -4. The time now is 22:04.