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

problem with function

milenko1976
Beginner
809 Views
Ok I have a problem like this.When I put function as a separate programe works fine(I have checked the results),when I put it as function in my big program,I get bad results,makes later numerical computaions senseless.I am attaching both versions.
0 Kudos
3 Replies
Steven_L_Intel1
Employee
809 Views
These programs look too different to make meaningful comparison, and they print out different amounts of data. I suggest you run each of them through the debugger and see where differences in values start to appear.
0 Kudos
mecej4
Honored Contributor III
809 Views
>When I put function as a separate programe works fine(I have checked the results),when I put it as function in my big program,I get bad results

Such things do happen. It is the programmer's lot to take such events in stride, and hunt down and zap the offending source code. Some even find such activity enjoyable.

You may have better luck getting help here if you formulate concrete questions based on a description of work already done, than by simply depositing buggy code here.
0 Kudos
milenko1976
Beginner
809 Views
I have solved this with debugger.
0 Kudos
Reply