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

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

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


Revision 1.3 - (show annotations) (download)
Wed Jan 13 21:36:26 2016 UTC (8 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, HEAD
Changes since 1.2: +8 -7 lines
- skip time-ave over cpl_atmSendFrq of Sea-Level Pressure (atmSLPr) and
  just pass last value, stored directly before export to CPL ;
- remove atmSLPr from pickup files (no longer needed for restart)

1 C $Header: /u/gcmpack/MITgcm/pkg/atm_compon_interf/atm_store_dynvars.F,v 1.2 2015/11/12 01:01:57 jmc Exp $
2 C $Name: $
3
4 #include "ATM_CPL_OPTIONS.h"
5
6 CBOP
7 C !ROUTINE: ATM_STORE_DYNVARS
8 C !INTERFACE:
9 SUBROUTINE ATM_STORE_DYNVARS(
10 I bi, bj,
11 I myTime, myIter, myThid )
12
13 C !DESCRIPTION: \bv
14 C *==========================================================*
15 C | SUBROUTINE ATM_STORE_DYNVARS
16 C | o Routine for saving dynamical fields (e.g., atmos.
17 C | sea-level pressure ) for export to coupling layer.
18 C *==========================================================*
19 C | This version interfaces to the main model
20 C *==========================================================*
21 C \ev
22
23 C !USES:
24 IMPLICIT NONE
25
26 C == Global variables ==
27 #include "SIZE.h"
28 #include "EEPARAMS.h"
29 #include "PARAMS.h"
30 #include "CPL_PARAMS.h"
31 C == Global variables (main model)
32 #include "DYNVARS.h"
33 C == Global variables for coupling interface ==
34 #include "ATMCPL.h"
35
36 C !INPUT/OUTPUT PARAMETERS:
37 C bi, bj :: Tile indices
38 C myTime :: Current time in simulation (s)
39 C myIter :: Current iteration number
40 C myThid :: My Thread Id. number
41 INTEGER bi, bj
42 _RL myTime
43 INTEGER myIter
44 INTEGER myThid
45
46 C !LOCAL VARIABLES:
47 C i, j :: Loop counters
48 INTEGER i,j
49 c _RL cplTimeFraction
50 CEOP
51
52 C o Accumulate Sea-level pressure anomaly from dynamical core
53 C to the coupling layer. Eta is in Pa
54 c cplTimeFraction = 1. _d 0 / DFLOAT(cplSendFrq_iter)
55 c atmSLPrTime(bi,bj) = atmSLPrTime(bi,bj) + cplTimeFraction
56 atmSLPrTime(bi,bj) = 1. _d 0
57 DO j=1,sNy
58 DO i=1,sNx
59 c atmSLPr(i,j,bi,bj) = atmSLPr(i,j,bi,bj)
60 c & + etaN(i,j,bi,bj)*cplTimeFraction
61 atmSLPr(i,j,bi,bj) = etaN(i,j,bi,bj)
62 ENDDO
63 ENDDO
64
65 RETURN
66 END

  ViewVC Help
Powered by ViewVC 1.1.22