[MITgcm-devel] diagnostics subdirectories

Daiwei (David) Wang daiwei at MIT.EDU
Tue Aug 9 10:34:02 EDT 2011


Hi,

I made some changes to diagnostics_readparms.F so that the model has the 
option to save each diagnostic stream in a separate subdirectory instead 
of the current run directory, meaning the output is more organized if 
there are more than a few diagnostic streams. The code is simple and 
follows the treatment of mdsioLocalDir:

          IF ( createDiagDir . AND. diag_mdsio .AND.
&     (globalFiles .OR. useSingleCpuIO) ) THEN
            WRITE(namBuf,'(2A)') ' mkdir -p ', fnames(n)
            pIL = 1 + ILNBLNK( namBuf )
            CALL SYSTEM( namBuf(1:pIL) )
            namBuf(1:iLen) = fnames(n)(1:iLen)
            WRITE(fnames(n),'(3A)') namBuf(1:iLen),'/',namBuf(1:iLen)
          ENDIF

When createDiagDir is true, instead of saving, say, THETA.*.data, the 
model will create a subdirectory THETA and save the output as 
THETA/THETA.*.data.

Do you think this is a useful option? I'm attaching the modified code.

Thanks,
David
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diagnostics_readparms.F
URL: <http://mitgcm.org/pipermail/mitgcm-devel/attachments/20110809/161f903f/attachment-0001.el>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: DIAGNOSTICS.h
URL: <http://mitgcm.org/pipermail/mitgcm-devel/attachments/20110809/161f903f/attachment-0001.h>


More information about the MITgcm-devel mailing list