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