/[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.2 - (show annotations) (download)
Mon Oct 8 23:48:28 2007 UTC (16 years, 8 months ago) by jmc
Branch: MAIN
Changes since 1.1: +11 -8 lines
add missing cvs $Header:$ or $Name:$

1 C $Header: $
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 #endif
43
44 CALL CHECK_SETTINGS
45
46 C set default values for these parms in couple.nml
47 dtatm = 1
48 dtocn = 8
49 dtcouple = 8
50 startYear = 1
51 endYear = 100
52 taveDump=100
53
54 C Next lines done in stand-alone ML model, so don't use any
55 C MITGCM helper routines; hopefully no unit conflict...
56 OPEN(514,file='couple.nml',status='old')
57 READ(514,COUPLE_PARM)
58 CLOSE(514)
59 CALL ATM2D_READPARMS(myThid)
60
61 ncall_atm=dtcouple/dtatm
62 ncall_ocean=dtcouple/dtocn
63 nCouplePer = (endYear-startYear+1)*24*365/dtcouple
64
65 PRINT *,'Model run years:',startYear,' to ', endYear
66 PRINT *,'dcouple=',dtcouple
67 PRINT *,'dtatm=',dtatm
68 PRINT *,'dtocn=',dtocn
69 PRINT *,'Total number of coupled periods:',nCouplePer
70
71 #ifdef OCEAN_3D
72 nTimeSteps = nCouplePer !overwrite whatever MITGCM gets from data
73 #endif
74
75 #ifdef CPL_OCEANCO2
76 ocupt=0.0
77 temuptann=0.0
78 #endif
79
80 #ifdef IPCC_EMI
81 OPEN (961,file='ipccemi.dat',
82 & status='old')
83 READ (961,*)nemis
84 PRINT *,'IPCC EMI=',nemis
85 CLOSE (961)
86 #endif
87
88 #ifdef OCEAN_3D
89 # ifdef ATM2D_MPI_ON
90
91 CALL INITIALISE
92
93 C Perform registration with other components
94 CALL ACCEPT_COMPONENT_REGISTRATIONS
95
96 C Coordinate the transfer configuration information
97 C between components
98 CALL RECEIVE_COMPONENT_CONFIGS
99 CALL SENDOUT_COMPONENT_CONFIGS
100 # endif
101
102 CALL INIT_ATM2D(dtatm, dtocn, dtcouple, myThid)
103 #endif
104
105 RETURN
106 END

  ViewVC Help
Powered by ViewVC 1.1.22