Hi everyone.
I have this program with 6 nested loops, the objective of it is opening some data-files, reading some values, doing some operations on these values and writing the results in some output files...
now, the outer loop (loop 11) is supposed to run some 900 times. Instead it will run about 10 times, and then the program will end without any error message (see attached screenprint).
I am printing loop indexes at each iteration, it seems that the crash happens somewhere in the two inner loops.
It also seems that there are no weird issues with the various loop indexes, prior to the crash.
I am also checking for I/O errors via IOSTAT, but either there is no I/O error or the program fails going to the specified line (105 in the screenprint) and writing the specified IERR variables on screen...
Also, note that if the crash happened say at iteration #10, I can run it again from iteration #9 and it will go fine until iteration #19, and so on...This means that it will pass thru the input data lines where the problem occurred last time with no problem, if only it gets there with a limited number of iterations.
Last : at the moment of the crash, the innermost loop will have turned some 2'500'000 times. COuld this matter somehow???
I am attaching a screenprint of the crash and the code...
any idea of how this could happen???
I have this program with 6 nested loops, the objective of it is opening some data-files, reading some values, doing some operations on these values and writing the results in some output files...
now, the outer loop (loop 11) is supposed to run some 900 times. Instead it will run about 10 times, and then the program will end without any error message (see attached screenprint).
I am printing loop indexes at each iteration, it seems that the crash happens somewhere in the two inner loops.
It also seems that there are no weird issues with the various loop indexes, prior to the crash.
I am also checking for I/O errors via IOSTAT, but either there is no I/O error or the program fails going to the specified line (105 in the screenprint) and writing the specified IERR variables on screen...
Also, note that if the crash happened say at iteration #10, I can run it again from iteration #9 and it will go fine until iteration #19, and so on...This means that it will pass thru the input data lines where the problem occurred last time with no problem, if only it gets there with a limited number of iterations.
Last : at the moment of the crash, the innermost loop will have turned some 2'500'000 times. COuld this matter somehow???
I am attaching a screenprint of the crash and the code...
any idea of how this could happen???