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/OPA_SRC/ZDF/zdfddm.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/OPA_SRC/ZDF/zdfddm.F90

    r2633 r2636  
    2121   USE lbclnk          ! ocean lateral boundary conditions (or mpp link) 
    2222   USE prtctl          ! Print control 
     23   USE lib_mpp            ! MPP library 
    2324 
    2425   IMPLICIT NONE 
     
    5657      IF( zdf_ddm_alloc /= 0 )   CALL ctl_warn('zdf_ddm_alloc: failed to allocate arrays') 
    5758   END FUNCTION zdf_ddm_alloc 
     59 
    5860 
    5961   SUBROUTINE zdf_ddm( kt ) 
     
    8991      !! References :   Merryfield et al., JPO, 29, 1124-1142, 1999. 
    9092      !!---------------------------------------------------------------------- 
    91       USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released 
    92       USE wrk_nemo, ONLY: zmsks  => wrk_2d_1,  & 
    93                           zmskf  => wrk_2d_2,  & 
    94                           zmskd1 => wrk_2d_3,  & 
    95                           zmskd2 => wrk_2d_4,  & 
    96                           zmskd3 => wrk_2d_5 
    97       IMPLICIT none 
     93      USE wrk_nemo, ONLY:   wrk_in_use, wrk_not_released 
     94      USE wrk_nemo, ONLY:   zmsks  => wrk_2d_1 , zmskf  => wrk_2d_2 , zmskd1 => wrk_2d_3   ! 2D workspace 
     95      USE wrk_nemo, ONLY:   zmskd2 => wrk_2d_4 , zmskd3 => wrk_2d_5                        !  -      - 
     96      ! 
    9897      INTEGER, INTENT(in) ::   kt   ! ocean time-step indexocean time step 
    99       !! 
     98      ! 
    10099      INTEGER  ::   ji, jj , jk     ! dummy loop indices 
    101100      REAL(wp) ::   zinr, zrr       ! temporary scalars 
     
    105104 
    106105      IF( wrk_in_use(2, 1,2,3,4,5) ) THEN 
    107          CALL ctl_stop('zdf_ddm: Requested workspace arrays already in use.')   ;   RETURN 
     106         CALL ctl_stop('zdf_ddm: Requested workspace arrays already in use')   ;   RETURN 
    108107      END IF 
    109108 
Note: See TracChangeset for help on using the changeset viewer.