/[MITgcm]/MITgcm/pkg/atm_compon_interf/atm_apply_import.F
ViewVC logotype

Contents of /MITgcm/pkg/atm_compon_interf/atm_apply_import.F

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


Revision 1.1 - (show annotations) (download)
Fri May 21 19:59:38 2004 UTC (19 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint58l_post, checkpoint57t_post, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64n, checkpoint64a, checkpoint57o_post, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint58e_post, checkpoint57v_post, checkpoint53d_post, checkpoint58u_post, checkpoint58w_post, checkpoint54a_pre, checkpoint57m_post, checkpoint55c_post, checkpoint54e_post, checkpoint57s_post, checkpoint54a_post, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint53c_post, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint57k_post, checkpoint55d_pre, checkpoint57d_post, checkpoint57g_post, checkpoint64, checkpoint60, checkpoint61, checkpoint62, checkpoint63, checkpoint57b_post, checkpoint57c_pre, checkpoint58r_post, checkpoint55j_post, checkpoint56b_post, checkpoint57i_post, checkpoint57y_post, checkpoint57e_post, checkpoint55h_post, checkpoint58n_post, checkpoint58x_post, checkpoint57g_pre, checkpoint54b_post, checkpoint55b_post, checkpoint58t_post, checkpoint58h_post, checkpoint54d_post, checkpoint56c_post, checkpoint57y_pre, checkpoint55, checkpoint57f_pre, checkpoint57a_post, checkpoint54, checkpoint58q_post, checkpoint54f_post, checkpoint59q, checkpoint59p, checkpoint55g_post, checkpoint59r, checkpoint58j_post, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint55f_post, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint59j, checkpoint57r_post, checkpoint59, checkpoint58, checkpoint57a_pre, checkpoint55i_post, checkpoint57, checkpoint56, eckpoint57e_pre, checkpoint57h_done, checkpoint58f_post, checkpoint53g_post, checkpoint57x_post, checkpoint57n_post, checkpoint58d_post, checkpoint58c_post, checkpoint57w_post, checkpoint57p_post, checkpint57u_post, checkpoint57f_post, checkpoint58a_post, checkpoint58i_post, checkpoint57q_post, checkpoint58g_post, checkpoint58o_post, checkpoint57z_post, checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint57c_post, checkpoint62z, checkpoint62y, checkpoint62x, checkpoint58y_post, checkpoint55e_post, checkpoint58k_post, checkpoint58v_post, checkpoint53f_post, checkpoint55a_post, checkpoint53d_pre, checkpoint54c_post, checkpoint58s_post, checkpoint61f, checkpoint61g, checkpoint61d, checkpoint61e, checkpoint61b, checkpoint61c, checkpoint58p_post, checkpoint61a, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint57j_post, checkpoint61z, checkpoint61x, checkpoint61y, checkpoint58b_post, checkpoint57h_pre, checkpoint58m_post, checkpoint57l_post, checkpoint57h_post, checkpoint56a_post, checkpoint55d_post
new version of atmosphere-coupler interface for AIM+thSIce and ocean models

1 C $Header: /u/gcmpack/MITgcm/pkg/aim_v23/aim_surf_bc.F,v 1.5 2004/04/08 00:14:09 jmc Exp $
2 C $Name: $
3
4 #include "PACKAGES_CONFIG.h"
5 #include "CPP_OPTIONS.h"
6
7 CBOP
8 C !ROUTINE: ATM_APPLY_IMPORT
9 C !INTERFACE:
10 SUBROUTINE ATM_APPLY_IMPORT(
11 I land_frc,
12 U aimTsoce, aimSIfrc,
13 I myTime, myIter, bi, bj, myThid )
14
15 C !DESCRIPTION: \bv
16 C *================================================================*
17 C | S/R ATM_APPLY_IMPORT
18 C | o Apply imported coupling data to AIM surface BC over ocean
19 C *================================================================*
20 C | Note: when using sea-ice, fill in Mixed layer fields instead
21 C | to be used later as Atmos. + Sea-Ice surface oceanic BC.
22 C *================================================================*
23 C \ev
24
25 C !USES:
26 IMPLICIT NONE
27
28 C == Global variables ===
29 #include "SIZE.h"
30 #include "EEPARAMS.h"
31 #include "PARAMS.h"
32 #include "CPL_PARAMS.h"
33
34 #ifdef ALLOW_THSICE
35 # include "THSICE_VARS.h"
36 #endif
37
38 C-- Coupled to the Ocean :
39 #include "ATMCPL.h"
40
41 C !INPUT/OUTPUT PARAMETERS:
42 C == Routine arguments ==
43 C land_frc :: land fraction [0-1]
44 C aimTsoce :: sea surface temp [K], used in AIM
45 C aimSIfrc :: sea-ice fraction [0-1]
46 C myTime :: Current time of simulation ( s )
47 C myIter :: Current iteration number in simulation
48 C bi,bj :: Tile index
49 C myThid :: Number of this instance of the routine
50 _RS land_frc(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
51 _RL aimTsoce(sNx,sNy)
52 _RL aimSIfrc(sNx,sNy)
53 _RL myTime
54 INTEGER myIter, bi, bj, myThid
55 CEOP
56
57 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
58
59 #ifdef COMPONENT_MODULE
60 C == Local variables ==
61 C i,j :: Loop counters
62 INTEGER i,j
63
64 #ifdef ALLOW_THSICE
65 IF ( useThSIce ) THEN
66 C-- Put fields from the ocean component in Mixed-layer arrays:
67
68 C- fill in hOceMxL with Mixed-layer Depth from the ocean component
69 IF ( useImportMxlD ) THEN
70 DO j=1,sNy
71 DO i=1,sNx
72 IF ( land_frc(i,j,bi,bj) .LT. 1. ) THEN
73 hOceMxL(i,j,bi,bj) = ocMxlD(i,j,bi,bj)
74 ENDIF
75 ENDDO
76 ENDDO
77 ENDIF
78
79 C- fill in tOceMxL with Sea-Surface Temp. from the ocean component
80 IF ( useImportSST ) THEN
81 DO j=1,sNy
82 DO i=1,sNx
83 IF ( land_frc(i,j,bi,bj) .LT. 1. ) THEN
84 tOceMxL(i,j,bi,bj) = SSTocn(i,j,bi,bj)
85 ENDIF
86 ENDDO
87 ENDDO
88 ENDIF
89
90 C- fill in sOceMxL with Sea-Surf Salinity from the ocean component
91 IF ( useImportSSS ) THEN
92 DO j=1,sNy
93 DO i=1,sNx
94 IF ( land_frc(i,j,bi,bj) .LT. 1. ) THEN
95 sOceMxL(i,j,bi,bj) = SSSocn(i,j,bi,bj)
96 ENDIF
97 ENDDO
98 ENDDO
99 ENDIF
100
101 C- fill in v2ocMxL with surf. velocity^2 from the ocean component
102 IF ( useImportVsq ) THEN
103 DO j=1,sNy
104 DO i=1,sNx
105 IF ( land_frc(i,j,bi,bj) .LT. 1. ) THEN
106 v2ocMxL(i,j,bi,bj) = vSqocn(i,j,bi,bj)
107 ENDIF
108 ENDDO
109 ENDDO
110 ENDIF
111
112 ELSE
113 #else
114 IF (.TRUE.) THEN
115 #endif /* ALLOW_THSICE */
116
117 IF ( useImportSST ) THEN
118 DO j=1,sNy
119 DO i=1,sNx
120 IF ( land_frc(i,j,bi,bj) .LT. 1. ) THEN
121
122 C-- take SST from the ocean compon where Sea-Ice fraction is zero
123 IF ( aimSIfrc(i,j).EQ.0. ) THEN
124 aimTsoce(i,j) = SSTocn(i,j,bi,bj)+celsius2K
125 ELSEIF ( SSTocn(i,j,bi,bj).GE. -1. _d 0) THEN
126 C-- take SST from the ocean compon if clearly warmer than freezing
127 C then reset sea-ice fraction
128 aimTsoce(i,j) = SSTocn(i,j,bi,bj)+celsius2K
129 aimSIfrc(i,j) = 0.
130 ENDIF
131
132 ENDIF
133 ENDDO
134 ENDDO
135 ENDIF
136
137 C-- if useThSIce / else / endif
138 ENDIF
139
140 #endif /* COMPONENT_MODULE */
141
142 RETURN
143 END

  ViewVC Help
Powered by ViewVC 1.1.22