1 |
|
2 |
#include "COST_CPPOPTIONS.h" |
3 |
|
4 |
subroutine cost_store_averagesflags( |
5 |
& lflag, first, last, |
6 |
& sum1day, dayrec, sum1mon, monrec, |
7 |
& restartdaydate, restartmondate, |
8 |
& mythid ) |
9 |
|
10 |
c ================================================================== |
11 |
c SUBROUTINE cost_store_averagesflags |
12 |
c ================================================================== |
13 |
|
14 |
implicit none |
15 |
|
16 |
c == global variables == |
17 |
|
18 |
#include "EEPARAMS.h" |
19 |
#include "SIZE.h" |
20 |
#include "PARAMS.h" |
21 |
|
22 |
c == routine arguments == |
23 |
|
24 |
logical lflag |
25 |
logical first |
26 |
logical last |
27 |
integer sum1day |
28 |
integer dayrec |
29 |
integer sum1mon |
30 |
integer monrec |
31 |
_RL restartdaydate(4) |
32 |
_RL restartmondate(4) |
33 |
integer mythid |
34 |
|
35 |
|
36 |
if ( lflag ) then |
37 |
IF (myProcId .eq. 0) THEN |
38 |
_BEGIN_MASTER( mythid ) |
39 |
open(unit=76,file='costaveragesflags') |
40 |
write(76,*) sum1day, dayrec, sum1mon, monrec, |
41 |
& restartdaydate, restartmondate |
42 |
close(76) |
43 |
_END_MASTER( mythid ) |
44 |
ENDIF |
45 |
endif |
46 |
|
47 |
end |