Hi all!
My program is constructed using three nested for loops: for each distance value the program executes for e.g. 10 energy values and for each energy value the program executes for e.g. 10 phase values. Using CALL system('mkdir ...') I organize the output in folders accordingly.
Thus, for example the output for the 2nd value of the distance, the 1st value of the energy and the 4th value of the phase would be found at .../2nd_distance/1st_energy/4th_phase.
Pseudocode for the above:
When I do the test runs (for short run times) everything works ok and the folder structure is created as I describe it above. When I attempt the full run (overnight) I return to find the run stopped and reporting error 'severe (43)'. The only folder created is the first of the above structure and the combined size of the .dat output files within is about 2.5 Gb.
As this is my RAM size I suspect that the program keeps all data on the RAM crashes when it gets full, and 'dumps' all data it has kept so far in a single folder. I think this shouldn't happen since I open and close all output files properly within the innermost loop and the test runs work ok. Any ideas what might cause the problem?
My program is constructed using three nested for loops: for each distance value the program executes for e.g. 10 energy values and for each energy value the program executes for e.g. 10 phase values. Using CALL system('mkdir ...') I organize the output in folders accordingly.
Thus, for example the output for the 2nd value of the distance, the 1st value of the energy and the 4th value of the phase would be found at .../2nd_distance/1st_energy/4th_phase.
Pseudocode for the above:
Code:
DO distance = 1.,10.,1.
DO energy= 1.,10.,1.
DO phase= 1.,10.,1.
open file output_dis_en_ph
... !Calculate data to be written in output_dis_en_ph
write output_dis_en_ph
close output_dis_en_ph
END
END
END
As this is my RAM size I suspect that the program keeps all data on the RAM crashes when it gets full, and 'dumps' all data it has kept so far in a single folder. I think this shouldn't happen since I open and close all output files properly within the innermost loop and the test runs work ok. Any ideas what might cause the problem?