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 – NEMO

Changeset 2626


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
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/LIM_SRC_2/iceini_2.F90

    r2613 r2626  
    1818   USE phycst           ! physical constants 
    1919   USE dom_oce          ! ocean domain 
     20   USE sbc_oce          ! surface boundary condition: ocean 
     21   USE sbc_ice          ! LIM2 surface boundary condition 
    2022   USE dom_ice_2        ! LIM2 ice domain 
    21    USE sbc_oce          ! surface boundary condition: ocean 
    22    USE sbc_ice          ! surface boundary condition: ice 
     23   USE par_ice_2        ! LIM2 parameters 
    2324   USE thd_ice_2        ! LIM2 thermodynamical variables 
    2425   USE limrhg           ! LIM2 rheology 
     
    6667      IF( lk_mpp    )   CALL mpp_sum( ierr ) 
    6768      IF( ierr /= 0 )   CALL ctl_stop( 'STOP', 'ice_init_2 : unable to allocate ice arrays' ) 
     69 
     70      !                                ! adequation jpk versus ice/snow layers 
     71      IF( jpl > jpk  .OR.  jplayersp1 > jpk  )   CALL ctl_stop( 'STOP',           & 
     72         &     'ice_init: the 3rd dimension of workspace arrays is too small.',   & 
     73         &     'use more ocean levels or less ice layers/categories.' ) 
    6874 
    6975      !                                ! Open the namelist file  
  • branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/LIM_SRC_2/limwri_2.F90

    r2615 r2626  
    7979      ALLOCATE( ndex51(jpij), zcmo(jpi,jpj,jpnoumax), STAT=lim_wri_alloc_2) 
    8080      ! 
    81       IF( lk_mpp               )   CALL mpp_sum( lim_wri_alloc_2 ) 
     81      IF( lk_mpp               )   CALL mpp_sum ( lim_wri_alloc_2 ) 
    8282      IF( lim_wri_alloc_2 /= 0 )   CALL ctl_warn('lim_wri_alloc_2: failed to allocate array ndex51') 
    8383      ! 
  • 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.