Changeset 1009


Ignore:
Timestamp:
Oct 7, 2008, 11:44:36 AM (16 years ago)
Author:
lsce
Message:
  • Changed variable name OCEAN to type_ocean in physiq.def
  • Removed test of coherence between CPP_VEGET and ok_veget (later to be readded in surf_land_orchdiee)

JG

Location:
LMDZ4/trunk/libf/phylmd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ4/trunk/libf/phylmd/conf_phys.F90

    r1001 r1009  
    3939
    4040!
    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)
    4244! ok_veget:   type de modele de vegetation
    4345! ok_journe:  sorties journalieres
     
    5153
    5254! Sortie:
    53   character (len = 6)  :: ocean
    5455  logical              :: ok_newmicro
    5556  integer              :: iflag_radia
     
    6162  integer              :: iflag_ratqs
    6263
    63   character (len = 6),SAVE  :: ocean_omp
     64  character (len = 6),SAVE  :: type_ocean_omp, version_ocean_omp, ocean_omp
    6465  logical,SAVE              :: ok_veget_omp, ok_newmicro_omp
    6566  logical,SAVE        :: ok_journe_omp, ok_mensuel_omp, ok_instan_omp, ok_hf_omp       
     
    129130
    130131!$OMP MASTER
    131 !Config Key  = OCEAN
     132!Config Key  = type_ocean
    132133!Config Desc = Type d'ocean
    133134!Config Def  = force
    134135!Config Help = Type d'ocean utilise: force, slab,couple
    135136!
    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'
    137156  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
    138164!
    139165!Config Key  = VEGET
     
    11751201    lev_histmth = lev_histmth_omp
    11761202
    1177     ocean = ocean_omp
     1203    type_ocean = type_ocean_omp
     1204    version_ocean = version_ocean_omp
    11781205    ok_veget = ok_veget_omp
    11791206    ok_newmicro = ok_newmicro_omp
     
    12311258    ok_hines = ok_hines_omp
    12321259   
    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
    12461267       version_ocean='sicOBS'
    1247     ELSE
    1248        WRITE(numout,*)' ERROR ocean not valid : ocean= ', ocean
    1249        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)
    12501271    END IF
    12511272
     
    12541275  write(numout,*)' ##############################################'
    12551276  write(numout,*)' Configuration des parametres de la physique: '
    1256   write(numout,*)' Config ocean = ', ocean
    12571277  write(numout,*)' Type ocean = ', type_ocean
    12581278  write(numout,*)' Version ocean = ', version_ocean
  • LMDZ4/trunk/libf/phylmd/pbl_surface_mod.F90

    r996 r1009  
    157157      CALL abort_gcm(modname,abort_message,1)
    158158    ENDIF
    159 
    160 !****************************************************************************************
    161 ! Test of coherence between variable ok_veget and cpp key CPP_VEGET
    162 !
    163 !****************************************************************************************
    164     IF (ok_veget) THEN
    165 #ifndef CPP_VEGET
    166        abort_message='Pb de coherence: ok_veget = .true. mais CPP_VEGET = .false.'
    167        CALL abort_gcm(modname,abort_message,1)
    168 #endif
    169     ENDIF
    170 
    171159
    172160  END SUBROUTINE pbl_surface_init
Note: See TracChangeset for help on using the changeset viewer.