I have a very large legacy simuilation model written Fortran 90 and compiled with the Intel Compiler. The program opens about 30 file units for writing output information and I want to make this an optional feature of the code. Is there a way through either an Intel specific command or Fortran standard that can supress writing the output files.
The brute force way would be to make some sort of flag that would be read in at run time and the place a series of IF statements before every WRITE. I would like to do this a bit more elegantly, but have not been able to figure out how (thought I could set the unit numbers to negatives, but that just caused the code to print to the cmd prompt).
The reason for all the extraneous output is for debugging the simulation model, but it impacts adversly the overall speed of the code.
Thanks for all help.