11 |
C !DESCRIPTION: |
C !DESCRIPTION: |
12 |
C calls subroutine that will update passive tracers values |
C calls subroutine that will update passive tracers values |
13 |
C with a separate timestep. Since GCHEM_FORCING_SEP is now |
C with a separate timestep. Since GCHEM_FORCING_SEP is now |
14 |
C called before DO_FIELDS_BLOCKING_EXCHANGES, the passive |
C called before DO_FIELDS_BLOCKING_EXCHANGES, the passive |
15 |
C tracer values in the halo regions are not up to date and |
C tracer values in the halo regions are not up to date and |
16 |
C must not be used. |
C must not be used. |
17 |
|
|
18 |
C !USES: =============================================================== |
C !USES: =============================================================== |
23 |
#include "EEPARAMS.h" |
#include "EEPARAMS.h" |
24 |
#include "PARAMS.h" |
#include "PARAMS.h" |
25 |
#include "PTRACERS_SIZE.h" |
#include "PTRACERS_SIZE.h" |
26 |
#include "PTRACERS.h" |
c#include "PTRACERS_PARAMS.h" |
27 |
|
#include "PTRACERS_FIELDS.h" |
28 |
#ifdef ALLOW_DIC |
#ifdef ALLOW_DIC |
29 |
#include "DIC_BIOTIC.h" |
#include "DIC_VARS.h" |
|
#include "DIC_ABIOTIC.h" |
|
30 |
#endif /* ALLOW_DIC */ |
#endif /* ALLOW_DIC */ |
31 |
|
|
32 |
C !INPUT PARAMETERS: =================================================== |
C !INPUT PARAMETERS: =================================================== |
50 |
c global calculations c |
c global calculations c |
51 |
ccccccccccccccccccccccccc |
ccccccccccccccccccccccccc |
52 |
#ifdef ALLOW_DIC |
#ifdef ALLOW_DIC |
53 |
|
#ifdef ALLOW_OLD_VIRTUALFLUX |
54 |
c find global surface averages |
c find global surface averages |
55 |
gsm_s = 0. |
gsm_s = 0. _d 0 |
56 |
gsm_dic = 0. |
gsm_dic = 0. _d 0 |
57 |
gsm_alk = 0. |
gsm_alk = 0. _d 0 |
58 |
call tracer_meanarea(myThid,salt, 1,gsm_s) |
call tracer_meanarea(myThid,salt, 1,gsm_s) |
59 |
call tracer_meanarea(myThid, |
call tracer_meanarea(myThid, |
60 |
& ptracer(1-Olx,1-Oly,1,1,1,1), 1, gsm_dic) |
& ptracer(1-Olx,1-Oly,1,1,1,1), 1, gsm_dic) |
61 |
print*,'mean surface dic', gsm_dic,gsm_s |
print*,'mean surface dic', gsm_dic,gsm_s |
62 |
call tracer_meanarea(myThid, |
call tracer_meanarea(myThid, |
63 |
& ptracer(1-Olx,1-Oly,1,1,1,2), 1, gsm_alk) |
& ptracer(1-Olx,1-Oly,1,1,1,2), 1, gsm_alk) |
64 |
|
#endif /* ALLOW_OLD_VIRTUALFLUX */ |
65 |
#endif |
#endif |
66 |
ccccccccccccccccccccccccccccccccccccccccccc |
ccccccccccccccccccccccccccccccccccccccccccc |
67 |
|
|
109 |
& myIter,myTime,myThid) |
& myIter,myTime,myThid) |
110 |
#endif |
#endif |
111 |
#endif |
#endif |
112 |
|
|
113 |
#endif |
#endif |
114 |
cccccccccccccccccccccccccc END DIC cccccccccccccccccccccccccccccccccc |
cccccccccccccccccccccccccc END DIC cccccccccccccccccccccccccccccccccc |
115 |
|
|
117 |
ENDDO |
ENDDO |
118 |
ENDDO |
ENDDO |
119 |
|
|
120 |
|
#ifdef ALLOW_DIC |
121 |
|
CALL DIC_ATMOS( 1, myTime, myIter, myThid ) |
122 |
|
#endif |
123 |
|
|
124 |
#endif /* GCHEM_SEPARATE_FORCING */ |
#endif /* GCHEM_SEPARATE_FORCING */ |
125 |
#endif /* ALLOW_GCHEM */ |
#endif /* ALLOW_GCHEM */ |
126 |
|
|