/[MITgcm]/MITgcm/pkg/atm2d/atm2d_init_fixed.F
ViewVC logotype

Contents of /MITgcm/pkg/atm2d/atm2d_init_fixed.F

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


Revision 1.5 - (show annotations) (download)
Mon Dec 2 23:54:43 2013 UTC (10 years, 5 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint65, 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, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, HEAD
Changes since 1.4: +7 -3 lines
make similar modifs as in pkg/atm_ocn_coupler to account for changes
in pkg/compon_communic and pkg/ocn_compon_interf.

1 C $Header: /u/gcmpack/MITgcm/pkg/atm2d/atm2d_init_fixed.F,v 1.4 2011/06/02 21:33:21 jscott Exp $
2 C $Name: $
3
4 #include "ctrparam.h"
5 #ifdef OCEAN_3D
6 # include "ATM2D_OPTIONS.h"
7 #endif
8 C
9 #ifndef OCEAN_3D
10 SUBROUTINE ATM2D_INIT_FIXED(nCouplePer, myThid)
11 #else
12 SUBROUTINE ATM2D_INIT_FIXED(myThid)
13 #endif
14 C |==========================================================|
15 C | Initialization steps prior to any pickup info loaded. |
16 C \==========================================================/
17 IMPLICIT NONE
18
19 #include "ATMSIZE.h"
20 #include "DRIVER.h"
21 #ifdef OCEAN_3D
22 # include "SIZE.h"
23 # include "EEPARAMS.h"
24 # include "PARAMS.h"
25 #endif
26
27 C !INPUT/OUTPUT PARAMETERS:
28 C == Routine arguments ==
29 C nCouplePer - total number of coupled periods for this run
30 C myThid - thread number for this instance of the routine.
31 #ifndef OCEAN_3D
32 INTEGER nCouplePer !not a subroutine parm for OCEAN_3D
33 #endif
34 INTEGER myThid
35
36 NAMELIST /COUPLE_PARM/
37 & dtcouple, dtatm, dtocn, startYear, endYear, taveDump
38
39 C === Local variables ===
40 #ifdef OCEAN_3D
41 INTEGER nCouplePer !not a subroutine parm for OCEAN_3D
42 # ifdef ATM2D_MPI_ON
43 INTEGER msgUnit
44 # endif
45 #endif
46
47 CALL CHECK_SETTINGS
48
49 C set default values for these parms in couple.nml
50 dtatm = 1
51 dtocn = 8
52 dtcouple = 8
53 startYear = 1
54 endYear = 100
55 taveDump=100
56
57 C Next lines done in stand-alone ML model, so don't use any
58 C MITGCM helper routines; hopefully no unit conflict...
59 OPEN(514,file='couple.nml',status='old')
60 READ(514,COUPLE_PARM)
61 CLOSE(514)
62
63 #ifdef OCEAN_3D
64 CALL ATM2D_READPARMS(myThid)
65 #endif
66
67 ncall_atm=dtcouple/dtatm
68 ncall_ocean=dtcouple/dtocn
69 nCouplePer = (endYear-startYear+1)*24*365/dtcouple
70
71 PRINT *,'Model run years:',startYear,' to ', endYear
72 PRINT *,'dcouple=',dtcouple
73 PRINT *,'dtatm=',dtatm
74 PRINT *,'dtocn=',dtocn
75 PRINT *,'Total number of coupled periods:',nCouplePer
76
77 #ifdef OCEAN_3D
78 nTimeSteps = nCouplePer !overwrite whatever MITGCM gets from data
79 #endif
80
81 #ifdef CPL_OCEANCO2
82 ocupt=0.0
83 temuptann=0.0
84 #endif
85
86 #ifdef OCEAN_3D
87 # ifdef ATM2D_MPI_ON
88
89 CALL INITIALISE
90
91 C Perform registration with other components
92 CALL ACCEPT_COMPONENT_REGISTRATIONS
93
94 C Coordinate the transfer configuration information
95 C between components
96 msgUnit = standardMessageUnit
97 CALL EXCH_COMPONENT_CONFIGS(
98 I msgUnit )
99 # endif
100
101 CALL INIT_ATM2D(dtatm, dtocn, dtcouple, myThid)
102 #endif
103
104 RETURN
105 END

  ViewVC Help
Powered by ViewVC 1.1.22