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_3/limitd_me.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_3/limitd_me.F90

    r2633 r2636  
    2424   USE limcons          ! LIM 
    2525   USE in_out_manager   ! I/O manager 
    26    USE prtctl           ! Print control 
    2726   USE lbclnk           ! lateral boundary condition - MPP exchanges 
    2827   USE lib_mpp          ! MPP library 
     28   USE prtctl           ! Print control 
    2929   USE wrk_nemo         ! workspace manager 
    3030 
     
    7878CONTAINS 
    7979 
    80    FUNCTION lim_itd_me_alloc() 
     80   INTEGER FUNCTION lim_itd_me_alloc() 
    8181      !!---------------------------------------------------------------------! 
    8282      !!                ***  ROUTINE lim_itd_me_alloc *** 
    8383      !!---------------------------------------------------------------------! 
    84       INTEGER :: lim_itd_me_alloc 
    85       !!---------------------------------------------------------------------! 
    86       ! 
    8784      ALLOCATE(                                                                     & 
    8885         !* Variables shared among ridging subroutines 
     
    9693         &      dardg1dt(jpi,jpj)  , dardg2dt(jpi,jpj)                        ,     &  
    9794         &      dvirdgdt(jpi,jpj)  , opening(jpi,jpj)                         , STAT=lim_itd_me_alloc ) 
    98       ! 
    99       IF( lim_itd_me_alloc /= 0 ) THEN 
    100          CALL ctl_warn( 'lim_itd_me_alloc: failed to allocate arrays.' ) 
    101       END IF 
     95         ! 
     96      IF( lim_itd_me_alloc /= 0 )   CALL ctl_warn( 'lim_itd_me_alloc: failed to allocate arrays' ) 
    10297      ! 
    10398   END FUNCTION lim_itd_me_alloc 
     
    149144 
    150145      IF( wrk_in_use(2, 1,2,3,4,5,6,7,8) ) THEN 
    151          CALL ctl_stop(' : requested workspace arrays unavailable.')   ;   RETURN 
    152       END IF 
     146         CALL ctl_stop('lim_itd_me: requested workspace arrays unavailable')   ;   RETURN 
     147      ENDIF 
    153148 
    154149      IF( numit == nstart  )   CALL lim_itd_me_init   ! Initialization (first time-step only) 
     
    494489      END DO 
    495490 
    496       IF( wrk_not_released(2, 1,2,3,4,5,6,7,8) )   CALL ctl_stop( 'lim_itd_me : failed to release workspace arrays.' ) 
     491      IF( wrk_not_released(2, 1,2,3,4,5,6,7,8) )   CALL ctl_stop('lim_itd_me: failed to release workspace arrays') 
    497492      ! 
    498493   END SUBROUTINE lim_itd_me 
     
    525520 
    526521      IF( wrk_in_use(2, 1) ) THEN 
    527          CALL ctl_stop('lim_itd_me_icestrength : requested workspace array unavailable.')   ;   RETURN 
    528       END IF 
     522         CALL ctl_stop('lim_itd_me_icestrength : requested workspace array unavailable')   ;   RETURN 
     523      ENDIF 
    529524 
    530525      !------------------------------------------------------------------------------! 
     
    678673      ENDIF ! ksmooth 
    679674 
    680       ! Boundary conditions 
    681       CALL lbc_lnk( strength, 'T', 1. ) 
    682  
    683       IF(wrk_not_released(2, 1))THEN 
    684          CALL ctl_stop('lim_itd_me_icestrength : failed to release workspace array.') 
    685       END IF 
    686  
     675      CALL lbc_lnk( strength, 'T', 1. )      ! Boundary conditions 
     676 
     677      IF( wrk_not_released(2, 1) )   CALL ctl_stop('lim_itd_me_icestrength: failed to release workspace array') 
     678      ! 
    687679   END SUBROUTINE lim_itd_me_icestrength 
    688680 
Note: See TracChangeset for help on using the changeset viewer.