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 2626 for branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/LIM_SRC_3 – NEMO

Ignore:
Timestamp:
2011-02-27T17:41:49+01:00 (13 years ago)
Author:
gm
Message:

dynamic mem: #785 ; LIM_SRC_3 mpp compilation correct limthd.F90 ; LIM2 & 3: add a test of jpl/jpk in iceini

Location:
branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/LIM_SRC_3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/LIM_SRC_3/iceini.F90

    r2612 r2626  
    6565      IF( lk_mpp    )   CALL mpp_sum( ierr ) 
    6666      IF( ierr /= 0 )   CALL ctl_stop( 'STOP', 'ice_init : unable to allocate ice arrays' ) 
    67  
    68       IF( ierr > 0 ) THEN 
    69          WRITE(numout,*)  
    70          WRITE(numout,*) 'ERROR: Allocation of memory failed in nemo_alloc' 
    71          IF( lk_mpp )   CALL mppstop() 
    72          STOP 
    73       END IF 
    74       ! 
     67      ! 
     68      !                                ! adequation jpk versus ice/snow layers/categories 
     69      IF( jpl   > jpk  .OR.  jpm    > jpk .OR.                                    & 
     70          jkmax > jpk  .OR.  nlay_s > jpk      )   CALL ctl_stop( 'STOP',         & 
     71         &     'ice_init: the 3rd dimension of workspace arrays is too small.',   & 
     72         &     'use more ocean levels or less ice/snow layers/categories.' ) 
     73 
    7574      !                                ! Open the namelist file  
    7675      CALL ctl_opn( numnam_ice, 'namelist_ice', 'OLD', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp ) 
  • branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/LIM_SRC_3/limthd.F90

    r2612 r2626  
    9696      IF( .NOT. wrk_use(2, 1) ) THEN 
    9797         CALL ctl_stop( 'lim_thd : requested workspace arrays unavailable' )   ;   RETURN 
    98       END IF 
     98      ENDIF 
    9999    
    100100      !------------------------------------------------------------------------------! 
     
    246246         !------------------------------------------------------------------------------! 
    247247 
    248          IF( lk_mpp )   CALL mpp_ini_ice( nbpb ) 
     248         IF( lk_mpp )   CALL mpp_ini_ice( nbpb , numout ) 
    249249 
    250250         IF( nbpb > 0 ) THEN  ! If there is no ice, do nothing. 
Note: See TracChangeset for help on using the changeset viewer.