C $Header: /home/ubuntu/mnt/e9_copy/MITgcm/pkg/ecco/Attic/cost_store_averagesflags.F,v 1.5 2015/11/24 21:23:48 gforget dead $ C $Name: $ #include "ECCO_OPTIONS.h" subroutine cost_store_averagesflags( & lflag, first, last, & sum1day, dayrec, restartdaydate, & sum1mon, monrec, restartmondate, & sum1year,yearrec, restartyeardate, & mythid ) c ================================================================== c SUBROUTINE cost_store_averagesflags c ================================================================== implicit none c == global variables == #include "EEPARAMS.h" #include "SIZE.h" #include "PARAMS.h" c == routine arguments == logical lflag logical first logical last integer sum1day integer dayrec integer sum1mon integer monrec integer sum1year integer yearrec _RL restartdaydate(4) _RL restartmondate(4) _RL restartyeardate(4) integer mythid if ( lflag ) then IF (myProcId .eq. 0) THEN _BEGIN_MASTER( mythid ) open(unit=76,file='costaveragesflags') write(76,*) & sum1day, dayrec, sum1mon, monrec, sum1year,yearrec, & restartdaydate, restartmondate, restartyeardate close(76) _END_MASTER( mythid ) ENDIF endif end