output change

output change

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

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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.

Login to leave a comment.