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

Annotation of /MITgcm/pkg/atm_compon_interf/atm_cpl_read_pickup.F

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


Revision 1.3 - (hide annotations) (download)
Mon Oct 1 13:39:53 2007 UTC (16 years, 8 months ago) by jmc
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, checkpoint60, checkpoint61, checkpoint62, checkpoint63, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59k, checkpoint59j, 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, checkpoint61f, checkpoint61g, checkpoint61d, checkpoint61e, checkpoint61b, checkpoint61c, checkpoint61a, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint61z, checkpoint61x, checkpoint61y
Changes since 1.2: +30 -19 lines
change cpl_oldPickup (to eanble a restart from an old pickup with
 EmP & runOff in m/s)

1 jmc 1.3 C $Header: /u/gcmpack/MITgcm/pkg/aim_compon_interf/atm_cpl_read_pickup.F,v 1.2 2007/06/18 21:28:52 jmc Exp $
2 jmc 1.1 C $Name: $
3    
4     #include "CPP_OPTIONS.h"
5    
6 jmc 1.2 CBOP
7     C !ROUTINE: ATM_CPL_READ_PICKUP
8     C !INTERFACE:
9 jmc 1.1 SUBROUTINE ATM_CPL_READ_PICKUP( myIter, myThid )
10 jmc 1.2
11     C !DESCRIPTION: \bv
12 jmc 1.1 C *==========================================================*
13     C | SUBROUTINE ATM_CPL_READ_PICKUP
14     C | o Reads fields from a pickup file for a restart
15     C *==========================================================*
16     C *==========================================================*
17 jmc 1.2 C \ev
18    
19     C !USES:
20 jmc 1.1 IMPLICIT NONE
21    
22     C == Global variables ==
23     #include "SIZE.h"
24     #include "EEPARAMS.h"
25     #include "PARAMS.h"
26     #include "CPL_PARAMS.h"
27 jmc 1.2 #include "ATMIDS.h"
28 jmc 1.1 #include "ATMCPL.h"
29    
30 jmc 1.2 C !INPUT/OUTPUT PARAMETERS:
31 jmc 1.1 C == Routine arguments ==
32 jmc 1.2 C myIter :: Current time-step number
33     C myThid :: my Thread Id number
34 jmc 1.1 INTEGER myIter
35     INTEGER myThid
36 jmc 1.2 CEOP
37 jmc 1.1
38     #ifdef COMPONENT_MODULE
39     C == Local variables ==
40     INTEGER prec
41 jmc 1.3 INTEGER i,j,bi,bj
42 jmc 1.1 CHARACTER*(MAX_LEN_FNAM) fn
43    
44     WRITE(fn,'(A,I10.10)') 'pickup_cpl.',myIter
45     prec = precFloat64
46    
47 jmc 1.3 c IF ( cpl_oldPickup ) THEN
48     C old pickup from before checkpoint 52m_post
49     c CALL READ_REC_3D_RL(fn,prec,1,SSTocn , 1,myIter,myThid)
50     c CALL READ_REC_3D_RL(fn,prec,1,HeatFlux , 2,myIter,myThid)
51     c CALL READ_REC_3D_RL(fn,prec,1,tauX , 3,myIter,myThid)
52     c CALL READ_REC_3D_RL(fn,prec,1,tauY , 4,myIter,myThid)
53     c CALL READ_REC_3D_RL(fn,prec,1,EvMPrFlux , 5,myIter,myThid)
54     c CALL READ_REC_3D_RL(fn,prec,1,RunOffFlux, 6,myIter,myThid)
55     c RETURN
56     c ENDIF
57 jmc 1.2 CALL READ_REC_3D_RL( fn,prec,1, ocMxlD , 1, myIter,myThid )
58     CALL READ_REC_3D_RL( fn,prec,1, SSTocn , 2, myIter,myThid )
59     CALL READ_REC_3D_RL( fn,prec,1, SSSocn , 3, myIter,myThid )
60     CALL READ_REC_3D_RL( fn,prec,1, vSqocn , 4, myIter,myThid )
61 jmc 1.3 IF ( cpl_earlyExpImpCall ) THEN
62 jmc 1.2 CALL READ_REC_3D_RL( fn,prec,1, atmSLPr , 5, myIter,myThid )
63     CALL READ_REC_3D_RL( fn,prec,1, HeatFlux , 6, myIter,myThid )
64     CALL READ_REC_3D_RL( fn,prec,1, qShortWave, 7, myIter,myThid )
65     CALL READ_REC_3D_RL( fn,prec,1, tauX , 8, myIter,myThid )
66     CALL READ_REC_3D_RL( fn,prec,1, tauY , 9, myIter,myThid )
67     CALL READ_REC_3D_RL( fn,prec,1, EvMPrFlux , 10, myIter,myThid )
68     CALL READ_REC_3D_RL( fn,prec,1, RunOffFlux, 11, myIter,myThid )
69     CALL READ_REC_3D_RL( fn,prec,1, RunOffEnFx, 12, myIter,myThid )
70     CALL READ_REC_3D_RL( fn,prec,1, iceSaltFlx, 13, myIter,myThid )
71     CALL READ_REC_3D_RL( fn,prec,1, seaIceMass, 14, myIter,myThid )
72 jmc 1.3 ENDIF
73     IF ( atmCpl_exchange_DIC ) THEN
74 jmc 1.2 CALL READ_REC_3D_RL( fn,prec,1, flxCO2ocn , 15, myIter,myThid )
75     CALL READ_REC_3D_RL( fn,prec,1, airCO2 , 16, myIter,myThid )
76     CALL READ_REC_3D_RL( fn,prec,1, sWSpeed , 17, myIter,myThid )
77     CALL READ_REC_3D_RL( fn,prec,1, fracIce , 18, myIter,myThid )
78 jmc 1.3 ENDIF
79    
80     IF ( cpl_oldPickup .AND. cpl_earlyExpImpCall ) THEN
81     _BARRIER
82     C- EmP & RunOff were (before checkpoint59h) in m/s , but are now in kg/m2/s:
83     DO bj = myByLo(myThid), myByHi(myThid)
84     DO bi = myBxLo(myThid), myBxHi(myThid)
85     DO j=1-Oly,sNy+Oly
86     DO i=1-Olx,sNx+Olx
87     EvMPrFlux (i,j,bi,bj) = EvMPrFlux (i,j,bi,bj)*rhoConstFresh
88     RunOffFlux(i,j,bi,bj) = RunOffFlux(i,j,bi,bj)*rhoConstFresh
89     ENDDO
90     ENDDO
91     ENDDO
92     ENDDO
93 jmc 1.1 ENDIF
94    
95     #endif /* COMPONENT_MODULE */
96    
97     RETURN
98     END

  ViewVC Help
Powered by ViewVC 1.1.22