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 2636 for branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/LIM_SRC_2/limthd_lac_2.F90 – NEMO

Ignore:
Timestamp:
2011-03-01T20:04:06+01:00 (13 years ago)
Author:
gm
Message:

dynamic mem: #785 ; move ctl_stop & warn in lib_mpp to avoid a circular dependency + ctl_stop improvment

File:
1 edited

Legend:

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

    r2633 r2636  
    77 
    88   !!---------------------------------------------------------------------- 
    9    !!   lim_lat_acr_2    : lateral accretion of ice 
    10    !! * Modules used 
     9   !!   lim_lat_acr_2   : lateral accretion of ice 
     10   !!---------------------------------------------------------------------- 
    1111   USE par_oce          ! ocean parameters 
    1212   USE phycst 
     
    1414   USE ice_2 
    1515   USE limistate_2  
    16       
     16   USE lib_mpp          ! MPP library 
     17 
    1718   IMPLICIT NONE 
    1819   PRIVATE 
    1920 
    20    !! * Routine accessibility 
    21    PUBLIC lim_thd_lac_2   ! called by lim_thd_2 
    22  
    23    !! * Module variables 
     21   PUBLIC   lim_thd_lac_2   ! called by lim_thd_2 
     22 
    2423   REAL(wp)  ::           &  ! constant values 
    2524      epsi20 = 1.e-20  ,  & 
     
    2726      zzero  = 0.e0    ,  & 
    2827      zone   = 1.e0 
     28 
    2929   !!---------------------------------------------------------------------- 
    3030   !! NEMO/LIM2 3.3 , UCL - NEMO Consortium (2010) 
     
    7070      USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released 
    7171      USE wrk_nemo, ONLY: wrk_1d_1, wrk_1d_2, wrk_1d_3, wrk_1d_4, wrk_1d_5, wrk_1d_6 
    72       USE in_out_manager, ONLY: ctl_stop 
    73       !! 
    74       !! * Arguments 
     72      ! 
    7573      INTEGER , INTENT(IN)::  & 
    7674         kideb          ,   &  ! start point on which the the computation is applied 
    7775         kiut                  ! end point on which the the computation is applied 
    7876 
    79       !! * Local variables 
     77      ! * Local variables 
    8078      INTEGER ::            & 
    8179         ji             ,   &  !  dummy loop indices 
     
    106104      !!---------------------------------------------------------------------       
    107105                
    108       IF(wrk_in_use(1, 1,2,3,4,5,6))THEN 
    109          CALL ctl_stop('lim_thd_lac_2 : requestead workspace arrays unavailable.') 
    110          RETURN 
    111       END IF 
     106      IF( wrk_in_use(1, 1,2,3,4,5,6) ) THEN 
     107         CALL ctl_stop('lim_thd_lac_2 : requestead workspace arrays unavailable')   ;   RETURN 
     108      ENDIF 
    112109      ! Set-up pointers to sub-arrays of workspace arrays 
    113110      zqbgow    => wrk_1d_1(1:jpij) 
     
    235232      END DO 
    236233       
    237       IF(wrk_not_released(1, 1,2,3,4,5,6))THEN 
    238          CALL ctl_stop('lim_thd_lac_2 : failed to release workspace arrays.') 
    239       END IF 
    240  
     234      IF( wrk_not_released(1, 1,2,3,4,5,6) )   CALL ctl_stop('lim_thd_lac_2 : failed to release workspace arrays.') 
     235      ! 
    241236   END SUBROUTINE lim_thd_lac_2 
    242237#else 
    243    !!====================================================================== 
     238   !!---------------------------------------------------------------------- 
    244239   !!                       ***  MODULE limthd_lac_2   *** 
    245240   !!                           no sea ice model 
    246    !!====================================================================== 
     241   !!---------------------------------------------------------------------- 
    247242CONTAINS 
    248243   SUBROUTINE lim_thd_lac_2           ! Empty routine 
    249244   END SUBROUTINE lim_thd_lac_2 
    250245#endif 
     246   !!====================================================================== 
    251247END MODULE limthd_lac_2 
Note: See TracChangeset for help on using the changeset viewer.