ranjith1009
Programmer
I have a subroutine let us call it A(x,y,z).
Case 1: A is called from another subroutine say B (B is just one of the subroutines the main function uses-so a lot more .f files are compiled together along with it). The results i get are incorrect.
Case 2: But when i call the same subroutine A(x,y,z) with same arguments from a test program i get correct results.
There are no "common" variables accessed by A. The compiler used is f95. have tried using option -g but with same result.
The simplest check possible tried is: printing all the inputs and outputs of A(x,y,z) inside A. all inputs match in both cases (1 and 2) but output does not.
Will appreciate any help in solving this.
Case 1: A is called from another subroutine say B (B is just one of the subroutines the main function uses-so a lot more .f files are compiled together along with it). The results i get are incorrect.
Case 2: But when i call the same subroutine A(x,y,z) with same arguments from a test program i get correct results.
There are no "common" variables accessed by A. The compiler used is f95. have tried using option -g but with same result.
The simplest check possible tried is: printing all the inputs and outputs of A(x,y,z) inside A. all inputs match in both cases (1 and 2) but output does not.
Will appreciate any help in solving this.