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 3785 for branches/2012/dev_MERGE_2012/NEMOGCM/NEMO/OPA_SRC/ICB/icbini.F90 – NEMO

Ignore:
Timestamp:
2013-02-10T08:53:27+01:00 (11 years ago)
Author:
gm
Message:

dev_MERGE_2012: #1051 : bug correction to compile LIM3 with ASM and with ICB

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2012/dev_MERGE_2012/NEMOGCM/NEMO/OPA_SRC/ICB/icbini.F90

    r3614 r3785  
    11MODULE icbini 
    2  
    32   !!====================================================================== 
    43   !!                       ***  MODULE  icbini  *** 
     
    1918   USE in_out_manager ! IO routines and numout in particular 
    2019   USE lib_mpp        ! mpi library and lk_mpp in particular 
    21    USE sbc_oce        ! ocean: surface boundary condition 
     20   USE sbc_oce        ! ocean  : surface boundary condition 
     21   USE sbc_ice        ! sea-ice: surface boundary condition 
    2222   USE iom            ! IOM library 
    2323   USE fldread        ! field read 
     
    267267   END SUBROUTINE icb_init 
    268268 
     269 
    269270   SUBROUTINE icb_ini_gen() 
    270271      !!---------------------------------------------------------------------- 
     
    333334   END SUBROUTINE icb_ini_gen 
    334335 
     336 
    335337   SUBROUTINE icb_nam 
    336338      !!---------------------------------------------------------------------- 
     
    377379      IF( zfact < 1._wp ) THEN 
    378380         IF( zfact <= 0._wp ) THEN 
    379             CALL ctl_stop( 'icb_nam: sum of berg distribution equal to zero' ) 
     381             
    380382         ELSE 
    381383            rn_distribution(:) = rn_distribution(:) / zfact 
    382384            CALL ctl_warn( 'icb_nam: sum of berg input distribution not equal to one and so RESCALED' ) 
    383385         ENDIF 
     386      ENDIF 
     387 
     388      IF( lk_lim3 .AND. ln_icebergs ) THEN 
     389         CALL ctl_stop( 'icb_nam: the use of ICB with LIM3 not allowed. ice thickness missing in ICB' ) 
    384390      ENDIF 
    385391 
     
    430436 
    431437   !!====================================================================== 
    432  
    433438END MODULE icbini 
Note: See TracChangeset for help on using the changeset viewer.