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 4616 for branches/2014/dev_CNRS0_NOC1_LDF/NEMOGCM/NEMO/OPA_SRC/ICB/icbthm.F90 – NEMO

Ignore:
Timestamp:
2014-04-06T17:28:25+02:00 (10 years ago)
Author:
gm
Message:

#1260 : see the associated wiki page for explanation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2014/dev_CNRS0_NOC1_LDF/NEMOGCM/NEMO/OPA_SRC/ICB/icbthm.F90

    r3631 r4616  
    11MODULE icbthm 
    2  
    32   !!====================================================================== 
    43   !!                       ***  MODULE  icbthm  *** 
     
    1110   !!            -    !  2011-05  (Alderson)       Use tmask instead of tmask_i 
    1211   !!---------------------------------------------------------------------- 
    13    !!---------------------------------------------------------------------- 
    14    !!   icb_thm : initialise 
    15    !!             reference for equations - M = Martin + Adcroft, OM 34, 2010 
     12    
     13   !!---------------------------------------------------------------------- 
     14   !!   icb_thm : initialise (reference for equations - M = Martin + Adcroft, OM 34, 2010) 
    1615   !!---------------------------------------------------------------------- 
    1716   USE par_oce        ! NEMO parameters 
     
    2120   USE phycst         ! NEMO physical constants 
    2221   USE sbc_oce 
    23  
     22   ! 
    2423   USE icb_oce        ! define iceberg arrays 
    2524   USE icbutl         ! iceberg utility routines 
     
    3130   PUBLIC   icb_thm ! routine called in icbstp.F90 module 
    3231 
     32   !!---------------------------------------------------------------------- 
     33   !! NEMO/OPA 3.7 , NEMO Consortium (2014) 
     34   !! $Id: cla.F90 4596 2014-03-26 11:02:30Z gm $ 
     35   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt) 
     36   !!---------------------------------------------------------------------- 
    3337CONTAINS 
    3438 
     
    155159         ! use tmask rather than tmask_i when dealing with icebergs 
    156160         IF( tmask(ii,ij,1) /= 0._wp ) THEN    ! Add melting to the grid and field diagnostics 
    157             z1_e1e2    = 1._wp / e1e2t(ii,ij) * this%mass_scaling 
     161            z1_e1e2    = r1_e1e2t(ii,ij) * this%mass_scaling 
    158162            z1_dt_e1e2 = z1_dt * z1_e1e2 
    159163            zmelt    = ( zdM - ( zdMbitsE - zdMbitsM ) ) * z1_dt   ! kg/s 
     
    194198            ! 
    195199         ELSE                            ! Diagnose mass distribution on grid 
    196             z1_e1e2 = 1._wp / e1e2t(ii,ij) * this%mass_scaling 
     200            z1_e1e2 = r1_e1e2t(ii,ij) * this%mass_scaling 
    197201            CALL icb_dia_size( ii, ij, zWn, zLn, zAbits,   & 
    198202            &                  this%mass_scaling, zMnew, znMbits, z1_e1e2) 
Note: See TracChangeset for help on using the changeset viewer.