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

my fortran problem

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 16, 2016, 11:54
Default my fortran problem
  #1
Senior Member
 
mohammad
Join Date: Sep 2015
Posts: 274
Rep Power: 11
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
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,398
Rep Power: 46
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
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.
flotus1 is offline   Reply With Quote

Old   September 16, 2016, 12:16
Default
  #3
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,764
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
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
Senior Member
 
mohammad
Join Date: Sep 2015
Posts: 274
Rep Power: 11
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: 6,764
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
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
Senior Member
 
mohammad
Join Date: Sep 2015
Posts: 274
Rep Power: 11
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: 6,764
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
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 Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with fortran file execution FarzinD CFX 4 March 27, 2017 11:05
problem about user fortran xyq916 CFX 0 January 27, 2015 07:38
Fortran compiler problem Luke Siemens 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 14:16.