/[MITgcm]/MITgcm/pkg/atm_phys/atm_phys_init_varia.F
ViewVC logotype

Contents of /MITgcm/pkg/atm_phys/atm_phys_init_varia.F

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


Revision 1.2 - (show annotations) (download)
Thu Sep 25 19:44:33 2014 UTC (9 years, 8 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, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, checkpoint65f, checkpoint65g, checkpoint65e, HEAD
Changes since 1.1: +12 -13 lines
always initialise SST (from atmPhys_SSTFile)

1 C $Header: /u/gcmpack/MITgcm/pkg/atm_phys/atm_phys_init_varia.F,v 1.1 2013/05/08 22:14:14 jmc Exp $
2 C $Name: $
3
4 #include "ATM_PHYS_OPTIONS.h"
5
6 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
7 CBOP 0
8 C !ROUTINE: ATM_PHYS_INIT_VARIA
9
10 C !INTERFACE:
11 SUBROUTINE ATM_PHYS_INIT_VARIA( myThid )
12
13 C !DESCRIPTION:
14 C Initialize Atm_Phys variables
15
16 C !USES:
17 IMPLICIT NONE
18 #include "SIZE.h"
19 #include "EEPARAMS.h"
20 #include "PARAMS.h"
21 #include "GRID.h"
22 #include "ATM_PHYS_PARAMS.h"
23 #include "ATM_PHYS_VARS.h"
24
25 C !INPUT/OUTPUT PARAMETERS:
26 C myThid :: my Thread Id number
27 INTEGER myThid
28 CEOP
29
30 #ifdef ALLOW_ATM_PHYS
31
32 C !LOCAL VARIABLES:
33 C === Local variables ===
34 INTEGER i,j,k,bi,bj
35
36 DO bj = myByLo(myThid), myByHi(myThid)
37 DO bi = myBxLo(myThid), myBxHi(myThid)
38
39 C-- Initialize arrays in common blocks :
40 C 3-dim.
41 DO k=1,Nr
42 DO j=1-OLy,sNy+OLy
43 DO i=1-OLx,sNx+OLx
44 atmPhys_dT(i,j,k,bi,bj) = 0. _d 0
45 atmPhys_dQ(i,j,k,bi,bj) = 0. _d 0
46 atmPhys_dU(i,j,k,bi,bj) = 0. _d 0
47 atmPhys_dV(i,j,k,bi,bj) = 0. _d 0
48 ENDDO
49 ENDDO
50 ENDDO
51
52 C 2-dim.
53 DO j=1-OLy,sNy+OLy
54 DO i=1-OLx,sNx+OLx
55 atmPhys_SST(i,j,bi,bj) = 0. _d 0
56 ENDDO
57 ENDDO
58
59 C- end bi,bj loops
60 ENDDO
61 ENDDO
62
63 C-- Initialize Boundary conditions:
64 IF ( atmPhys_SSTFile .NE. ' ' ) THEN
65 CALL READ_FLD_XY_RL( atmPhys_SSTFile,' ',
66 & atmPhys_SST, 0, myThid )
67 CALL EXCH_XY_RL( atmPhys_SST, myThid )
68 ENDIF
69
70 C-- Initialize ATM_PHYS State Variables:
71 IF ( startTime.EQ.baseTime .AND. nIter0.EQ.0
72 & .AND. pickupSuff.EQ.' ' ) THEN
73 C- start new run from iter-zero:
74
75 ELSE
76 C- restart from a pickup:
77 CALL ATM_PHYS_READ_PICKUP( nIter0, myThid )
78
79 C- end start-from-iter-zero if/else block
80 ENDIF
81
82 #endif /* ALLOW_ATM_PHYS */
83
84 RETURN
85 END

  ViewVC Help
Powered by ViewVC 1.1.22