1 |
stephd |
1.1 |
cswdcost -- add sunroutine --- |
2 |
|
|
#include "CPP_OPTIONS.h" |
3 |
|
|
#include "GCHEM_OPTIONS.h" |
4 |
|
|
|
5 |
|
|
|
6 |
|
|
CStartOfInterFace |
7 |
|
|
SUBROUTINE DIC_AVER_FINAL( |
8 |
|
|
I myThid) |
9 |
|
|
|
10 |
|
|
C /==========================================================\ |
11 |
|
|
C | SUBROUTINE DIC_AVER_FINAL i | |
12 |
|
|
C |==========================================================| |
13 |
|
|
IMPLICIT NONE |
14 |
|
|
|
15 |
|
|
C == GLobal variables == |
16 |
|
|
#include "SIZE.h" |
17 |
|
|
#include "DYNVARS.h" |
18 |
|
|
#include "EEPARAMS.h" |
19 |
|
|
#include "PARAMS.h" |
20 |
|
|
#include "GRID.h" |
21 |
|
|
#include "PTRACERS.h" |
22 |
|
|
#include "GCHEM.h" |
23 |
|
|
#include "DIC_ABIOTIC.h" |
24 |
|
|
#ifdef DIC_BIOTIC |
25 |
|
|
#include "DIC_BIOTIC.h" |
26 |
|
|
#include "DIC_DIAGS.h" |
27 |
|
|
#include "DIC_COST.h" |
28 |
|
|
#endif |
29 |
|
|
#ifdef ALLOW_SEAICE |
30 |
|
|
#include "ICE.h" |
31 |
|
|
#endif |
32 |
|
|
|
33 |
|
|
C == Routine arguments == |
34 |
|
|
INTEGER myIter |
35 |
|
|
_RL myTime |
36 |
|
|
INTEGER myThid |
37 |
|
|
|
38 |
|
|
#ifdef ALLOW_DIC_COST |
39 |
|
|
|
40 |
|
|
C == Local variables == |
41 |
|
|
LOGICAL DIFFERENT_MULTIPLE |
42 |
|
|
EXTERNAL DIFFERENT_MULTIPLE |
43 |
|
|
INTEGER i, j, bi, bj, k, it |
44 |
|
|
_RL rdt |
45 |
|
|
INTEGER nForcingPeriods,Imytm,Ifprd,Ifcyc,Iftm |
46 |
|
|
|
47 |
|
|
cswddmonth -- end- |
48 |
|
|
c |
49 |
|
|
C Normalize by integrated time |
50 |
|
|
DO bj = myByLo(myThid), myByHi(myThid) |
51 |
|
|
DO bi = myBxLo(myThid), myBxHi(myThid) |
52 |
|
|
CALL TIMEAVE_NORMALIZ(PO4ann, OBS_timetave, nR , |
53 |
|
|
& bi,bj,myThid) |
54 |
|
|
CALL TIMEAVE_NORMALIZ(O2ann, OBS_timetave, nR , |
55 |
|
|
& bi,bj,myThid) |
56 |
|
|
cswdmonth-add |
57 |
|
|
CALL TIMEAVE_NORMALIZ(PO4lev1, OBSM_timetave, 12 , |
58 |
|
|
& bi,bj,myThid) |
59 |
|
|
CALL TIMEAVE_NORMALIZ(PO4lev2, OBSM_timetave, 12 , |
60 |
|
|
& bi,bj,myThid) |
61 |
|
|
CALL TIMEAVE_NORMALIZ(PO4lev3, OBSM_timetave, 12 , |
62 |
|
|
& bi,bj,myThid) |
63 |
|
|
cQQ CALL TIMEAVE_NORMALIZ(PO4lev4, OBSM_timetave, 12 , |
64 |
|
|
cQQ & bi,bj,myThid) |
65 |
|
|
CALL TIMEAVE_NORMALIZ(O2lev1, OBSM_timetave, 12 , |
66 |
|
|
& bi,bj,myThid) |
67 |
|
|
CALL TIMEAVE_NORMALIZ(O2lev2, OBSM_timetave, 12 , |
68 |
|
|
& bi,bj,myThid) |
69 |
|
|
CALL TIMEAVE_NORMALIZ(O2lev3, OBSM_timetave, 12 , |
70 |
|
|
& bi,bj,myThid) |
71 |
|
|
cQQ CALL TIMEAVE_NORMALIZ(O2lev4, OBSM_timetave, 12 , |
72 |
|
|
cQQ & bi,bj,myThid) |
73 |
|
|
cswdmonth -end- |
74 |
|
|
ENDDO |
75 |
|
|
ENDDO |
76 |
|
|
#endif |
77 |
|
|
c |
78 |
|
|
RETURN |
79 |
|
|
END |
80 |
|
|
cswd -- end added subroutine -- |