/[MITgcm]/MITgcm/pkg/ocn_compon_interf/ocn_store_my_data.F
ViewVC logotype

Contents of /MITgcm/pkg/ocn_compon_interf/ocn_store_my_data.F

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


Revision 1.5 - (show annotations) (download)
Mon Jan 5 15:21:36 2009 UTC (15 years, 3 months ago) by dfer
Branch: MAIN
CVS Tags: checkpoint64i, checkpoint64h, checkpoint64j, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint64, checkpoint62, checkpoint63, checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint61z, checkpoint61x, checkpoint61y
Changes since 1.4: +10 -10 lines
Add well-mixed CO2 box in Aim

1 C $Header: /u/gcmpack/MITgcm/pkg/ocn_compon_interf/ocn_store_my_data.F,v 1.4 2008/04/04 21:43:57 dfer Exp $
2 C $Name: $
3 #include "PACKAGES_CONFIG.h"
4 #include "CPP_OPTIONS.h"
5
6 CStartOfInterface
7 SUBROUTINE OCN_STORE_MY_DATA(
8 I myTime, myIter, bi,bj, myThid )
9 C /==========================================================\
10 C | SUBROUTINE OCN_STORE_MY_DATA |
11 C | o Routine for controlling storage of coupling data to |
12 C | to the coupling layer. |
13 C |==========================================================|
14 C | This version talks to the MIT Coupler. It uses the MIT |
15 C | Coupler "checkpoint1" library calls. |
16 C \==========================================================/
17 IMPLICIT NONE
18
19 C == Global variables ==
20 #include "SIZE.h"
21 #include "EEPARAMS.h"
22 #include "PARAMS.h"
23 #include "CPL_PARAMS.h"
24 #include "GRID.h"
25 #include "SURFACE.h"
26 #include "DYNVARS.h"
27 #include "OCNIDS.h"
28 #include "OCNCPL.h"
29 #ifdef ALLOW_DIC
30 # include "DIC_VARS.h"
31 #endif
32
33 C == Routine arguments ==
34 C myTime - Current internal time.
35 C myIter - Current timestep number.
36 C bi,bj - Current tile indices
37 C myThid - Thread number for this instance of the routine
38 _RL myTime
39 INTEGER myIter
40 INTEGER bi,bj
41 INTEGER myThid
42
43
44 CEndOfInterface
45
46 C == Local variables ==
47 C i,j :: Loop variables
48 INTEGER i,j
49
50 IF ( cpl_earlyExpImpCall ) THEN
51 DO j=1,sNy
52 DO i=1,sNx
53 SSTocn2cpl(i,j,bi,bj) = theta(i,j,1,bi,bj)
54 SSSocn2cpl(i,j,bi,bj) = salt (i,j,1,bi,bj)
55 ENDDO
56 ENDDO
57 ELSE
58 DO j=1,sNy
59 DO i=1,sNx
60 SSTocn2cpl(i,j,bi,bj) = gT(i,j,1,bi,bj)
61 SSSocn2cpl(i,j,bi,bj) = gS(i,j,1,bi,bj)
62 ENDDO
63 ENDDO
64 ENDIF
65 #ifdef NONLIN_FRSURF
66 IF ( nonlinFreeSurf.GT.0 .AND.
67 & (staggerTimeStep .OR. .NOT.cpl_earlyExpImpCall ) ) THEN
68 IF ( select_rStar.GT.0 ) THEN
69 DO j=1,sNy
70 DO i=1,sNx
71 ocMxlD2cpl(i,j,bi,bj) =
72 & h0FacC(i,j,1,bi,bj)*rStarFacC(i,j,bi,bj)*drF(1)
73 ENDDO
74 ENDDO
75 ELSE
76 DO j=1,sNy
77 DO i=1,sNx
78 ocMxlD2cpl(i,j,bi,bj) = hFac_surfC(i,j,bi,bj)*drF(1)
79 ENDDO
80 ENDDO
81 ENDIF
82 ELSE
83 #else /* NONLIN_FRSURF */
84 IF (.TRUE.) THEN
85 #endif /* NONLIN_FRSURF */
86 DO j=1,sNy
87 DO i=1,sNx
88 ocMxlD2cpl(i,j,bi,bj) = hFacC(i,j,1,bi,bj)*drF(1)
89 ENDDO
90 ENDDO
91 ENDIF
92
93 DO j=1,sNy
94 DO i=1,sNx
95 vSqocn2cpl(i,j,bi,bj) =
96 & ( uVel(i , j,1,bi,bj)*uVel(i , j,1,bi,bj)
97 & + uVel(i+1,j,1,bi,bj)*uVel(i+1,j,1,bi,bj)
98 & + vVel(i,j+1,1,bi,bj)*vVel(i,j+1,1,bi,bj)
99 & + vVel(i,j , 1,bi,bj)*vVel(i,j , 1,bi,bj)
100 & )*0.5 _d 0
101 ENDDO
102 ENDDO
103
104 c#ifdef ALLOW_DIC
105 c IF ( ocnCpl_exchange_DIC ) THEN
106 c DO j=1,sNy
107 c DO i=1,sNx
108 c fluxCO2cpl(i,j,bi,bj) = fluxCO2(i,j,bi,bj)
109 c ENDDO
110 c ENDDO
111 c ENDIF
112 c#endif
113
114 RETURN
115 END

  ViewVC Help
Powered by ViewVC 1.1.22