Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

output change

AHAD_K_
Beginner
524 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
524 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