1 |
heimbach |
1.1 |
|
2 |
|
|
#include "COST_CPPOPTIONS.h" |
3 |
|
|
|
4 |
|
|
subroutine cost_restore_averagesflags( |
5 |
|
|
& lcostrestart, first, last, |
6 |
|
|
& sum1day, dayrec, sum1mon, monrec, |
7 |
|
|
& restartdaydate, restartmondate, |
8 |
|
|
& mythid ) |
9 |
|
|
|
10 |
|
|
c ================================================================== |
11 |
|
|
c SUBROUTINE cost_restore_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 lcostrestart |
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 (myProcId .eq. 0) THEN |
37 |
|
|
_BEGIN_MASTER( mythid ) |
38 |
|
|
open(unit=76,file='costaveragesflags') |
39 |
|
|
read(76,*) sum1day, dayrec, sum1mon, monrec, |
40 |
|
|
& restartdaydate, restartmondate |
41 |
|
|
close(76) |
42 |
|
|
_END_MASTER( mythid ) |
43 |
|
|
ENDIF |
44 |
|
|
|
45 |
|
|
end |