/[MITgcm]/MITgcm_contrib/jscott/igsm/src/check_settings.F
ViewVC logotype

Annotation of /MITgcm_contrib/jscott/igsm/src/check_settings.F

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


Revision 1.1 - (hide annotations) (download)
Fri Aug 11 19:35:30 2006 UTC (18 years, 11 months ago) by jscott
Branch: MAIN
CVS Tags: HEAD
atm2d package

1 jscott 1.1
2     #include "ctrparam.h"
3    
4     ! This subroutine checks model settings
5     !
6     subroutine check_settings
7     common/libset/nlev_l,nlat_l,nlon_l
8    
9     c Checking of consistency of model settings
10     c
11     LMO=N_LEVOCEAN
12     nlev=N_LEV
13     nlat=N_LAT
14     nlon0=N_LON0
15     print *,'From check_settings',nlev,nlat,nlon0
16     if(nlat.eq.24.and.nlon0.ne.36)then
17     print *,'From model'
18     print *,' N_LAT inconsistent with N_LON0'
19     print *,N_LAT,N_LON0
20     stop
21     endif
22     if(nlat.eq.46.and.nlon0.ne.72)then
23     print *,'From model'
24     print *,' N_LAT inconsistent with N_LON0'
25     print *,N_LAT,N_LON0
26     stop
27     endif
28    
29     call check_lib
30     if(nlev.ne.nlev_l)then
31     print *,' N_LEV inconsistent with N_LEV_LIB'
32     print *,'N_LEV_MODEL=',nlev,' N_LEV_LIB=',nlev_l
33     stop
34     endif
35     if(nlat.ne.nlat_l)then
36     print *,' N_LAT inconsistent with N_LAT_LIB'
37     print *,'N_LAT_MODEL=',nlat,' N_LAT_LIB=',nlat_l
38     stop
39     endif
40     print *,'nlev=',nlev
41     C
42     C RUNS WITH CHEMISTRY
43     C
44     #if ( defined CPL_CHEM )
45     !
46     print *,' Climate model with interactive chemistry'
47     !
48     # if ( !defined PREDICTED_GASES )
49     c
50     print *, 'PREDICTED_GASES undefined'
51     stop
52     c
53     # endif
54     # if ( !defined PREDICTED_AEROSOL )
55     c
56     print *, 'PREDICTED_AEROSOL undefined'
57     stop
58     c
59     # endif
60     # if ( !defined PREDICTED_BC )
61     c
62     print *, 'PREDICTED_BC undefined'
63     stop
64     c
65     # endif
66     # if ( defined O3_FORCED) || (defined SVI_ALBEDO)
67     print *,' O3_FORCED and SVI_ALBEDO should be undefined'
68     print *,O3_FORCED,SVI_ALBEDO
69     stop
70     # endif
71     c
72     # if ( defined CPL_OCEANCO2 )
73     print *,' Run with ocean chemistry'
74     # if ( defined ML_2D )
75     if(LMO.ne.11) then
76     print *,'Wrong LMO for OCM model',LMO
77     stop
78     endif
79     # endif
80     # endif
81     # if (defined CPL_META )
82     print *,'Run with META model'
83     # endif
84     C
85     C RUNS WITHOUT CHEMISTRY
86     C
87     #else
88     print *,'Climate model without chemistry'
89    
90     # if ( defined PREDICTED_BC )
91     print *,'Run with chahges in black carbon predicted by'
92     print *,' climate-chemistry model READGHG should be 1 or 2'
93    
94     # endif
95     c
96     c
97     # if (defined CPL_META )
98     c
99     print *, 'CPL_META should be also undefined'
100     print *, CPL_META
101     stop
102     # endif
103     # if ( defined PREDICTED_GASES )
104     print *,'Run with chahges in GHGs predicted by'
105     print *,' climate-chemistry model READGHG should be 1 or 2'
106     # if ( defined O3_FORCED) || (defined SVI_ALBEDO)
107     print *,' O3_FORCED and SVI_ALBEDO should be undefined'
108     print *,O3_FORCED,SVI_ALBEDO
109     stop
110     # endif
111     # endif
112     # if ( defined PREDICTED_AEROSOL )
113     print *,'Run with chahges in aerosol predicted by'
114     print *,' climate-chemistry model READGHG should be 1 or 2'
115     # if ( defined O3_FORCED) || (defined SVI_ALBEDO)
116     print *,' O3_FORCED and SVI_ALBEDO should be undefined'
117     print *,O3_FORCED,SVI_ALBEDO
118     stop
119     # endif
120     # endif
121     # if ( defined O3_FORCED)
122     print *,' Run with prescribed changes in ozone'
123     c if(NLEN.ne.11) then
124     c print *,'NLEN should be 11'
125     c print *,'NLEV=',N_LEV
126     c stop
127     c endif
128     print *,'Make sure that OBSFOR = true'
129     # endif
130     # if (defined SVI_ALBEDO)
131     print *,' Run with prescribed changes in aerosol (surf. albedo)'
132     c if(NLEN.ne.11) then
133     c print *,'NLEN should be 11'
134     c print *,'NLEV=',N_LEV
135     c stop
136     c endif
137     print *,'Make sure that OBSFOR = true'
138     # endif
139     c
140     #endif
141     #if ( defined CPL_TEM )
142     print *,' Run with TEM'
143     #endif
144     #if ( defined CPL_OCEANCO2 )
145     print *,' Run with ocean chemistry'
146     #if ( defined ML_2D )
147     if(LMO.ne.11) then
148     print *,'Wrong LMO for OCM model',LMO
149     stop
150     endif
151     #endif
152     #endif
153     #if ( defined CPL_NEM )
154     print *,' Run with NEM'
155     #endif
156     return
157     end

  ViewVC Help
Powered by ViewVC 1.1.22