/[MITgcm]/MITgcm/pkg/dic/dic_biotic_diags.F
ViewVC logotype

Annotation of /MITgcm/pkg/dic/dic_biotic_diags.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (hide annotations) (download)
Thu Oct 9 04:19:19 2003 UTC (20 years, 11 months ago) by edhill
Branch: MAIN
CVS Tags: checkpoint51k_post, checkpoint52l_pre, checkpoint52e_pre, hrcube4, checkpoint52n_post, checkpoint52j_post, checkpoint53d_post, checkpoint54a_pre, checkpoint51o_pre, checkpoint55c_post, checkpoint54e_post, checkpoint52e_post, checkpoint51n_pre, checkpoint54a_post, checkpoint53c_post, checkpoint55d_pre, checkpoint57d_post, checkpoint51l_post, checkpoint51q_post, checkpoint57b_post, checkpoint57c_pre, checkpoint55j_post, checkpoint56b_post, hrcube_1, checkpoint57e_post, branch-netcdf, checkpoint52d_pre, checkpoint52l_post, checkpoint55h_post, checkpoint51r_post, checkpoint52k_post, checkpoint52b_pre, checkpoint54b_post, checkpoint53b_pre, checkpoint55b_post, checkpoint54d_post, checkpoint56c_post, checkpoint52m_post, checkpoint55, checkpoint53a_post, checkpoint57f_pre, checkpoint57a_post, checkpoint54, checkpoint54f_post, checkpoint53b_post, checkpoint55g_post, checkpoint51o_post, checkpoint51p_post, checkpoint52a_pre, checkpoint55f_post, checkpoint57a_pre, checkpoint55i_post, checkpoint57, checkpoint56, checkpoint51i_post, checkpoint53, checkpoint52, checkpoint52d_post, eckpoint57e_pre, checkpoint52a_post, checkpoint52b_post, checkpoint53g_post, checkpoint52f_post, checkpoint52c_post, checkpoint51l_pre, ecco_c52_e35, hrcube5, checkpoint57c_post, checkpoint55e_post, checkpoint52i_post, checkpoint52j_pre, checkpoint53f_post, checkpoint55a_post, checkpoint51t_post, checkpoint53d_pre, checkpoint54c_post, checkpoint51n_post, checkpoint52i_pre, checkpoint51u_post, checkpoint52h_pre, checkpoint52f_pre, hrcube_2, hrcube_3, checkpoint56a_post, checkpoint51m_post, checkpoint51s_post, checkpoint55d_post
Branch point for: branch-nonh, tg2-branch, checkpoint51n_branch, netcdf-sm0
Changes since 1.3: +2 -2 lines
 o first check-in for the "branch-genmake2" merge
 o verification suite as run on shelley (gcc 3.2.2):

Wed Oct  8 23:42:29 EDT 2003
                T           S           U           V
G D M    c        m  s        m  s        m  s        m  s
E p a R  g  m  m  e  .  m  m  e  .  m  m  e  .  m  m  e  .
N n k u  2  i  a  a  d  i  a  a  d  i  a  a  d  i  a  a  d
2 d e n  d  n  x  n  .  n  x  n  .  n  x  n  .  n  x  n  .

OPTFILE=NONE

Y Y Y Y 13 16 16 16  0 16 16 16 16 16 16 16 16 13 12  0  0 pass  adjustment.128x64x1
Y Y Y Y 16 16 16 16  0 16 16 16 16 16 16  0  0 16 16  0  0 pass  adjustment.cs-32x32x1
Y Y Y Y 16 16 16 16  0 16 16 16 16 16 16 22  0 16 16 22  0 pass  adjust_nlfs.cs-32x32x1
Y Y Y Y -- 13 13 16 16 13 13 13 13 16 16 16 16 16 16 16 16 N/O   advect_cs
Y Y Y Y -- 22 16 16 16 16 16 16 13 16 16 16 16 16 16 16 16 N/O   advect_xy
Y Y Y Y -- 13 16 13 16 16 16 16 16 16 16 22 16 16 16 16 16 N/O   advect_xz
Y Y Y Y 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 pass  aim.5l_cs
Y Y Y Y 14 16 16 16 16 16 16 16 16 13 16 16 16 16 16 13 16 pass  aim.5l_Equatorial_Channel
Y Y Y Y 16 16 16 16 16 16 16 16 16 16 16 13 16 16 13 13 16 pass  aim.5l_LatLon
Y Y Y Y 13 16 16 16 16 16 16 16 16 16 13 12 13 13 16 13 16 pass  exp0
Y Y Y Y 14 16 16 16 16 16 16 16 22 16 16 16 13 16 16 22 16 pass  exp1
Y Y Y Y 13 13 16 13 16 16 16 16 16 13 13 16 16 13 13 13 13 pass  exp2
Y Y Y Y 16 16 16 16 16 16 16 16 22 16 16 16 16 16 16 16 16 pass  exp4
Y Y Y Y 16 16 16 16 16 16 16 16 16 16 16 22 16 16 16 22 16 pass  exp5
Y Y Y Y 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 pass  front_relax
Y Y Y Y 14 16 16 13 13 16 16 13 13 16 13 13 16 12 13 13 16 pass  global_ocean.90x40x15
Y Y Y Y 10 16 16 13 13 16 13 16 16 13 13 13 13 16 16 13 16 FAIL  global_ocean.cs32x15
Y Y Y Y  6 11 12 13 13 12 13 16 13  9  9  9  9 10  9  9 11 FAIL  global_ocean_pressure
Y Y Y Y 14 16 16 13 16 16 16 13 13 13 13 13 16 12 16 13 16 pass  global_with_exf
Y Y Y Y 14 16 16 16 16 16 16 16 16 11 13 22 13 16 16  9 16 pass  hs94.128x64x5
Y Y Y Y 13 16 16 16 16 16 16 16 16 11 16 16 16 13 16 22 13 pass  hs94.1x64x5
Y Y Y Y 14 16 16 16 16 16 16 16 16 13 16 13 13 16 16 22 13 pass  hs94.cs-32x32x5
Y Y Y Y 10 10 16 13 13 16 16 16 22 16 13 13 13 13 13 22 13 FAIL  ideal_2D_oce
Y Y Y Y  8 16 16 16 16 16 16 16 16 13 13  8 16 16 16 16 16 FAIL  internal_wave
Y Y Y Y 14 16 16 16 16 16 16 16 16 13 13 22 13 13 13 22 16 pass  inverted_barometer
Y Y Y Y 12 16 16 16 16 16 16 16 16 16 13 12 13 13 13 13 13 FAIL  lab_sea
Y Y Y Y 11 16 16 16 16 16 16 16 13 13 13 12 13 16 13 12 13 FAIL  natl_box
Y Y Y Y 16 16 16 16 16 16 16 16 22 16 16 16 16 16 16 16 16 pass  plume_on_slope
Y Y Y Y 13 16 16 16 16 13 16 16 16 16 16 16 16 13 16 16 16 pass  solid-body.cs-32x32x1

1 edhill 1.4 C $Header: $
2 stephd 1.1 C $Name: $
3    
4 edhill 1.4 #include "DIC_OPTIONS.h"
5 stephd 1.1 #include "GCHEM_OPTIONS.h"
6    
7     CStartOfInterface
8     SUBROUTINE DIC_BIOTIC_DIAGS( myTime, myIter, myThid )
9     C /==========================================================\
10     C | SUBROUTINE DIC_BIOTIC_DIAGS |
11     C | o Do DIC diagnostic output |
12     C |==========================================================|
13     C \==========================================================/
14     IMPLICIT NONE
15    
16     C === Global variables ===
17     #include "SIZE.h"
18     #include "EEPARAMS.h"
19     #include "PARAMS.h"
20     #include "DIC_BIOTIC.h"
21    
22     C == Routine arguments ==
23     C myTime - Current time of simulation ( s )
24     C myIter - Iteration number
25     C myThid - Number of this instance of INI_FORCING
26     _RL myTime
27     INTEGER myIter
28     INTEGER myThid
29     CEndOfInterface
30    
31    
32     C == Local variables ==
33     LOGICAL DIFFERENT_MULTIPLE
34     EXTERNAL DIFFERENT_MULTIPLE
35     INTEGER bi, bj, k
36     CHARACTER*(MAX_LEN_MBUF) suff
37    
38     #ifdef DIC_BIOTIC
39    
40    
41     #ifdef ALLOW_TIMEAVE
42    
43     C Dump files and restart average computation if needed
44     IF ( DIFFERENT_MULTIPLE(taveFreq,myTime,myTime-deltaTClock)
45     & ) THEN
46    
47     C Normalize by integrated time
48     DO bj = myByLo(myThid), myByHi(myThid)
49     DO bi = myBxLo(myThid), myBxHi(myThid)
50     CALL TIMEAVE_NORMALIZ(BIOave, DIC_timeave, nR ,
51     & bi,bj,myThid)
52     CALL TIMEAVE_NORMALIZ(CARave, DIC_timeave, nR ,
53     & bi,bj,myThid)
54     CALL TIMEAVE_NORMALIZ(SURave,dic_timeave, 1 ,
55     & bi,bj,myThid)
56     CALL TIMEAVE_NORMALIZ(SUROave,dic_timeave, 1 ,
57     & bi,bj,myThid)
58     CALL TIMEAVE_NORMALIZ(pCO2ave,dic_timeave, 1 ,
59     & bi,bj,myThid)
60     CALL TIMEAVE_NORMALIZ(pHave,dic_timeave, 1 ,
61     & bi,bj,myThid)
62 stephd 1.2 CALL TIMEAVE_NORMALIZ(fluxCO2ave,dic_timeave, 1 ,
63     & bi,bj,myThid)
64 stephd 1.1 ENDDO
65     ENDDO
66    
67     WRITE(suff,'(I10.10)') myIter
68    
69     CALL WRITE_FLD_XYZ_RL('DIC_Biotave.',suff,BIOave,
70     & myIter,myThid)
71     CALL WRITE_FLD_XYZ_RL('DIC_Cartave.',suff,CARave,
72     & myIter,myThid)
73     CALL WRITE_FLD_XY_RL('DIC_Surtave.',suff,SURave,
74     & myIter,myThid)
75     CALL WRITE_FLD_XY_RL('DIC_SurOtave.',suff,SUROave,
76     & myIter,myThid)
77 stephd 1.2 CALL WRITE_FLD_XY_RL('DIC_pHtave.',suff,pHave,
78     & myIter,myThid)
79 stephd 1.1 CALL WRITE_FLD_XY_RL('DIC_pCO2tave.',suff,pCO2ave,
80     & myIter,myThid)
81 stephd 1.2 CALL WRITE_FLD_XY_RL('DIC_fluxCO2ave.',suff,fluxCO2ave,
82 stephd 1.1 & myIter,myThid)
83 stephd 1.2
84 stephd 1.1
85     C Reset averages to zero
86     DO bj = myByLo(myThid), myByHi(myThid)
87     DO bi = myBxLo(myThid), myBxHi(myThid)
88     CALL TIMEAVE_RESET(BIOave,Nr,bi,bj,myThid)
89     CALL TIMEAVE_RESET(CARave,Nr,bi,bj,myThid)
90     CALL TIMEAVE_RESET(SURave,1,bi,bj,myThid)
91     CALL TIMEAVE_RESET(SUROave,1,bi,bj,myThid)
92     CALL TIMEAVE_RESET(pCO2ave,1,bi,bj,myThid)
93     CALL TIMEAVE_RESET(pHave,1,bi,bj,myThid)
94 stephd 1.2 CALL TIMEAVE_RESET(fluxCO2ave,1,bi,bj,myThid)
95 stephd 1.1 do k=1,Nr
96     DIC_TimeAve(bi,bj,k)=0.d0
97     enddo
98     ENDDO
99     ENDDO
100    
101     ENDIF
102    
103     #endif /* ALLOW_TIMEAVE */
104    
105     #endif /* DIC_BIOTIC */
106    
107     RETURN
108     END

  ViewVC Help
Powered by ViewVC 1.1.22