New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 5078 for branches/2015/dev_r5044_CNRS_LIM3CLEAN/NEMOGCM/NEMO/OPA_SRC/DOM/phycst.F90 – NEMO

Ignore:
Timestamp:
2015-02-11T16:15:11+01:00 (9 years ago)
Author:
clem
Message:

LIM3: cosmetic changes to increase readability and performance

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5044_CNRS_LIM3CLEAN/NEMOGCM/NEMO/OPA_SRC/DOM/phycst.F90

    r4990 r5078  
    8282   REAL(wp), PUBLIC ::   xlic     =  300.33e+6_wp    !: volumetric latent heat fusion of ice                  [J/m3] 
    8383   REAL(wp), PUBLIC ::   xsn      =    2.8e+6_wp     !: volumetric latent heat of sublimation of snow         [J/m3] 
     84#endif 
     85#if defined key_lim3 
     86   REAL(wp), PUBLIC ::   r1_rhoic                    !: 1 / rhoic 
     87   REAL(wp), PUBLIC ::   r1_rhosn                    !: 1 / rhosn 
    8488#endif 
    8589   !!---------------------------------------------------------------------- 
     
    166170      lfus = xlsn / rhosn        ! latent heat of fusion of fresh ice 
    167171#endif 
    168  
     172#if defined key_lim3 
     173      r1_rhoic = 1._wp / rhoic 
     174      r1_rhosn = 1._wp / rhosn 
     175#endif 
    169176      IF(lwp) THEN 
    170177         WRITE(numout,*) 
Note: See TracChangeset for help on using the changeset viewer.