|
[Sponsors] |
September 16, 2016, 11:54 |
my fortran problem
|
#1 |
Senior Member
mohammad
Join Date: Sep 2015
Posts: 274
Rep Power: 11 |
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? |
|
September 16, 2016, 12:05 |
|
#2 |
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,399
Rep Power: 46 |
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.
|
|
September 16, 2016, 12:16 |
|
#3 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71 |
I agree, that for sure due to a programming error.
Check the variables type you pass in the call and use the debugging option. |
|
September 16, 2016, 16:06 |
#ind
|
#4 |
Senior Member
mohammad
Join Date: Sep 2015
Posts: 274
Rep Power: 11 |
Mr denaro, what does mean #ind in numbers for compiling fortran77?
|
|
September 16, 2016, 16:12 |
|
#5 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71 |
||
September 16, 2016, 18:48 |
|
#6 |
Senior Member
mohammad
Join Date: Sep 2015
Posts: 274
Rep Power: 11 |
||
September 17, 2016, 03:29 |
|
#7 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71 |
Use all the debug option in the compilation without optimization.
Check for array bound violation, type mismatch, etc. |
|
|
|
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 |