Ignore:
Timestamp:
Jan 10, 2019, 3:44:36 PM (6 years ago)
Author:
aboissinot
Message:

Fix a bug in thermcell_closure arguments which implies wrong fluxes normalization.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/thermcell_mod.F90

    r2060 r2064  
    3939! AB : linf is used to set the lowest possible first level because we allow it
    4040!      to begin higher than the surface. It is set to 2 in order to remove the
    41 !      first layer for gas giant. If there is a surface, it has to be set to 1.
     41!      first layer for gas giant.
     42!      If there is a surface, it has to be set to 1.
     43!      If someone want to call more than once the thermal plume model in one
     44!      or more grid point, this variable must become a saved array of INTEGER
     45!      with size ngrid.
    4246!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    4347INTEGER,PARAMETER :: linf                       = 2
     
    5963!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    6064! AB : Parameters needed only for a loop in thermcell_alp (diagnoses).
    61 !      Maybe to remove.
     65!      Maybe to be removed.
    6266!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    6367INTEGER,PARAMETER :: nbsrf                      = 1
     
    6569
    6670CONTAINS
    67 
    68    SUBROUTINE init_thermcell_mod(g, rcp, r, pi, T_h2o_ice_liq, RV)
    69    
    70    IMPLICIT NONE
    71    
    72    REAL g
    73    REAL rcp
    74    REAL r
    75    REAL pi
    76    REAL T_h2o_ice_liq
    77    REAL RV
    78    
    79    RTT = T_h2o_ice_liq
    80    RG = g
    81    RKAPPA = rcp
    82    RPI = pi
    83    RD = r
    84    
    85    RETURN
    86    END SUBROUTINE init_thermcell_mod
     71     
     72      SUBROUTINE init_thermcell_mod(g, rcp, r, pi, T_h2o_ice_liq, RV)
     73      
     74      IMPLICIT NONE
     75      
     76      REAL g
     77      REAL rcp
     78      REAL r
     79      REAL pi
     80      REAL T_h2o_ice_liq
     81      REAL RV
     82      
     83      RTT = T_h2o_ice_liq
     84      RG = g
     85      RKAPPA = rcp
     86      RPI = pi
     87      RD = r
     88      
     89      RETURN
     90      END SUBROUTINE init_thermcell_mod
    8791
    8892END MODULE thermcell_mod
Note: See TracChangeset for help on using the changeset viewer.