Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Fortran - "Print" command doesn't work in deeper levels of callings of subroutines

Bruno_M_
Beginner
834 Views

Hi, please can you help me?

I'm using Intel Parallel Studio 2015 with Visual Studio 2015 and in my algorithm written in Fortran I noted that when I call a second subroutine inside a first subroutine, the print command inside the second subroutine doesn't work, it only works in the first subroutine. Is that right? Is there any way to make it work for any level of calling?

Thanks in advance

0 Kudos
3 Replies
Arjen_Markus
Honored Contributor I
834 Views

That doesn't sound right at all - can you reproduce it in a small postable program?
 

0 Kudos
Bruno_M_3
Beginner
834 Views

Yes Arjen, you are right. There were some errors in the algorithm. I made the corrections and now the the program is printing everything in all subroutines :)  . Thank you very much for you attention!

0 Kudos
Arjen_Markus
Honored Contributor I
834 Views

Glad you were able to solve it. Sometimes you see the opposite: the program does not work and if you add an output statement it suddenly seems to do fine :).

0 Kudos
Reply