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

output change

AHAD_K_
Beginner
288 Views

Hi 
When I run my code the PRINT*, or WRITE(*,*) statement inside the loop 
changes the result. This happens when I want to print two variable 
but when I print just one variable results are different. 
following is that part of the code: 

COMPLEX*16 AMU, ANU , AMUNU, ANUMU, CHERN, 
$ FMUNU, DIFFA 




WRITE(*,*) DIFFA 

WRITE(*,*) FMUNU 

when I just print one of DIFFA or FMUNU the result is different from the time 
of writing both of them. 

Thank you

0 Kudos
1 Reply
mecej4
Honored Contributor III
288 Views

This behavior is typically a result of a bug in your program, possibly compounded by optimization of the buggy code.

To find a solution, we need a complete example source code that exhibits this behavior.

0 Kudos
Reply