Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
26745 Discussions

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

Bruno_M_
Beginner
292 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
Valued Contributor III
292 Views

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

Bruno_M_3
Beginner
292 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!

Arjen_Markus
Valued Contributor III
292 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 :).

Reply