Changeset 534 for codes/icosagcm/devel


Ignore:
Timestamp:
05/30/17 15:52:00 (7 years ago)
Author:
dubos
Message:

devel : caldyn_thermo = thermo_boussinesq replaces boussinesq=.TRUE. (shallow-water)

Location:
codes/icosagcm/devel/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/devel/src/base/earth_const.f90

    r533 r534  
    1919  REAL(rstd),SAVE :: mu                 ! molar mass of the atmosphere 
    2020 
    21   INTEGER, PARAMETER,PUBLIC :: thermo_theta=1, thermo_entropy=2, & 
    22        thermo_moist=3, thermo_moist_debug=10, thermo_dry=4, thermo_fake_moist=5  
     21  INTEGER, PARAMETER,PUBLIC :: thermo_none=-99, thermo_theta=1, thermo_entropy=2, & 
     22       thermo_moist=3, thermo_boussinesq=4, thermo_dry=10, thermo_fake_moist=11, thermo_moist_debug=100 
    2323  INTEGER, PUBLIC :: caldyn_thermo, physics_thermo 
    2424  !$OMP THREADPRIVATE(caldyn_thermo)  
     
    4848    boussinesq=.FALSE. 
    4949    CALL getin("boussinesq",boussinesq)   
     50    PRINT *, "Note : key boussinesq is deprecated, use thermo=boussinesq instead" 
     51    IF(boussinesq) STOP 
    5052    hydrostatic=.TRUE. 
    5153    CALL getin("hydrostatic",hydrostatic)   
  • codes/icosagcm/devel/src/dynamics/caldyn_gcm.f90

    r531 r534  
    2121    INTEGER            :: ind 
    2222    REAL(rstd),POINTER :: planetvel(:) 
     23 
     24    hydrostatic=.TRUE. 
     25    CALL getin("hydrostatic",hydrostatic) 
    2326   
    2427    def='energy' 
     
    3740 
    3841    nqdyn=1 ! default value 
     42    physics_thermo = thermo_none 
    3943 
    4044    def='theta' 
    4145    CALL getin('thermo',def) 
    4246    SELECT CASE(TRIM(def)) 
     47    CASE('boussinesq') 
     48       boussinesq=.TRUE. 
     49       caldyn_thermo=thermo_boussinesq 
     50       IF(.NOT. hydrostatic) THEN 
     51          PRINT *, 'thermo=boussinesq and hydrostatic=.FALSE. : Non-hydrostatic boussinesq equations are not supported' 
     52          STOP 
     53       END IF 
    4354    CASE('theta') 
    4455       caldyn_thermo=thermo_theta 
Note: See TracChangeset for help on using the changeset viewer.