Changeset 1009 for LMDZ4/trunk
- Timestamp:
- Oct 7, 2008, 11:44:36 AM (16 years ago)
- Location:
- LMDZ4/trunk/libf/phylmd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/trunk/libf/phylmd/conf_phys.F90
r1001 r1009 39 39 40 40 ! 41 ! ocean: type d'ocean (force, slab, couple) 41 ! type_ocean: type d'ocean (force, slab, couple) 42 ! version_ocean: version d'ocean (opa8/nemo pour type_ocean=couple ou 43 ! sicOBS pour type_ocean=slab) 42 44 ! ok_veget: type de modele de vegetation 43 45 ! ok_journe: sorties journalieres … … 51 53 52 54 ! Sortie: 53 character (len = 6) :: ocean54 55 logical :: ok_newmicro 55 56 integer :: iflag_radia … … 61 62 integer :: iflag_ratqs 62 63 63 character (len = 6),SAVE :: ocean_omp64 character (len = 6),SAVE :: type_ocean_omp, version_ocean_omp, ocean_omp 64 65 logical,SAVE :: ok_veget_omp, ok_newmicro_omp 65 66 logical,SAVE :: ok_journe_omp, ok_mensuel_omp, ok_instan_omp, ok_hf_omp … … 129 130 130 131 !$OMP MASTER 131 !Config Key = OCEAN132 !Config Key = type_ocean 132 133 !Config Desc = Type d'ocean 133 134 !Config Def = force 134 135 !Config Help = Type d'ocean utilise: force, slab,couple 135 136 ! 136 ocean_omp = 'force ' 137 type_ocean_omp = 'force ' 138 call getin('type_ocean', type_ocean_omp) 139 ! 140 !$OMP MASTER 141 !Config Key = version_ocean 142 !Config Desc = Version d'ocean 143 !Config Def = xxxxxx 144 !Config Help = Version d'ocean utilise: opa8/nemo/sicOBS/xxxxxx 145 ! 146 version_ocean_omp = 'xxxxxx' 147 call getin('version_ocean', version_ocean_omp) 148 149 !$OMP MASTER 150 !Config Key = OCEAN 151 !Config Desc = Old parameter name for type_ocean 152 !Config Def = yyyyyy 153 !Config Help = This is only for testing purpose 154 ! 155 ocean_omp = 'yyyyyy' 137 156 call getin('OCEAN', ocean_omp) 157 IF (ocean_omp /= 'yyyyyy') THEN 158 WRITE(numout,*)'ERROR!! Old variable name OCEAN used in parmeter file.' 159 WRITE(numout,*)'Variable OCEAN has been replaced by the variable type_ocean.' 160 WRITE(numout,*)'You have to update your parameter file physiq.def to succed running' 161 CALL abort_gcm('conf_phys','Variable OCEAN no longer existing, use variable name type_ocean',1) 162 END IF 163 138 164 ! 139 165 !Config Key = VEGET … … 1175 1201 lev_histmth = lev_histmth_omp 1176 1202 1177 ocean = ocean_omp 1203 type_ocean = type_ocean_omp 1204 version_ocean = version_ocean_omp 1178 1205 ok_veget = ok_veget_omp 1179 1206 ok_newmicro = ok_newmicro_omp … … 1231 1258 ok_hines = ok_hines_omp 1232 1259 1233 1234 ! Attribution of new parmeters according to parameters in .def 1235 IF (ocean=='couple' .OR. ocean=='opa8') THEN 1236 type_ocean='couple' 1237 version_ocean='opa8' 1238 ELSE IF (ocean=='nemo') THEN 1239 type_ocean='couple' 1240 version_ocean='nemo' 1241 ELSE IF (ocean=='force') THEN 1242 type_ocean='force' 1243 version_ocean='xxxxxx' 1244 ELSE IF (ocean=='slab') THEN 1245 type_ocean='slab' 1260 ! Test of coherence between type_ocean and version_ocean 1261 IF (type_ocean=='couple' .AND. (version_ocean/='opa8' .OR. version_ocean/='nemo') ) THEN 1262 WRITE(numout,*)' ERROR version_ocean=',version_ocean,' not valid in coupled configuration' 1263 CALL abort_gcm('conf_phys','version_ocean not valid',1) 1264 END IF 1265 1266 IF (type_ocean=='slab' .AND. version_ocean/='xxxxxx') THEN 1246 1267 version_ocean='sicOBS' 1247 ELSE 1248 WRITE(numout,*)' ERROR ocean not valid : ocean= ', ocean1249 CALL abort_gcm('conf_phys',' ocean not valid',1)1268 ELSE IF (type_ocean=='slab' .AND. version_ocean/='sicOBS') THEN 1269 WRITE(numout,*)' ERROR version_ocean=',version_ocean,' not valid with slab ocean' 1270 CALL abort_gcm('conf_phys','version_ocean not valid',1) 1250 1271 END IF 1251 1272 … … 1254 1275 write(numout,*)' ##############################################' 1255 1276 write(numout,*)' Configuration des parametres de la physique: ' 1256 write(numout,*)' Config ocean = ', ocean1257 1277 write(numout,*)' Type ocean = ', type_ocean 1258 1278 write(numout,*)' Version ocean = ', version_ocean -
LMDZ4/trunk/libf/phylmd/pbl_surface_mod.F90
r996 r1009 157 157 CALL abort_gcm(modname,abort_message,1) 158 158 ENDIF 159 160 !****************************************************************************************161 ! Test of coherence between variable ok_veget and cpp key CPP_VEGET162 !163 !****************************************************************************************164 IF (ok_veget) THEN165 #ifndef CPP_VEGET166 abort_message='Pb de coherence: ok_veget = .true. mais CPP_VEGET = .false.'167 CALL abort_gcm(modname,abort_message,1)168 #endif169 ENDIF170 171 159 172 160 END SUBROUTINE pbl_surface_init
Note: See TracChangeset
for help on using the changeset viewer.