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/DYN/dynldf_bilapg.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/DYN/dynldf_bilapg.F90

    r2633 r2636  
    2424   USE trdmod_oce      ! ocean variables trends 
    2525   USE ldfslp          ! iso-neutral slopes available 
     26   USE lib_mpp         ! MPP library 
    2627   USE lbclnk          ! ocean lateral boundary conditions (or mpp link) 
    2728   USE prtctl          ! Print control 
     
    4142   !! NEMO/OPA 3.3 , NEMO Consortium (2010) 
    4243   !! $Id$  
    43    !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 
    44    !!---------------------------------------------------------------------- 
    45  
     44   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt) 
     45   !!---------------------------------------------------------------------- 
    4646CONTAINS 
    4747 
     
    5050      !!               ***  ROUTINE dyn_ldf_bilapg_alloc  *** 
    5151      !!---------------------------------------------------------------------- 
    52       ! 
    5352      ALLOCATE( zfuw(jpi,jpk) , zfvw (jpi,jpk) , zdiu(jpi,jpk) , zdiv (jpi,jpk) ,     & 
    5453         &      zdju(jpi,jpk) , zdj1u(jpi,jpk) , zdjv(jpi,jpk) , zdj1v(jpi,jpk) , STAT=dyn_ldf_bilapg_alloc) 
    5554         ! 
    5655      IF( dyn_ldf_bilapg_alloc /= 0 )   CALL ctl_warn('dyn_ldf_bilapg_alloc: failed to allocate arrays') 
    57       ! 
    5856   END FUNCTION dyn_ldf_bilapg_alloc 
    5957 
     
    9694 
    9795      IF( wrk_in_use(3, 1,2) ) THEN 
    98          CALL ctl_stop('dyn_ldf_bilapg: requested workspace arrays unavailable.')   ;   RETURN 
    99       END IF 
     96         CALL ctl_stop('dyn_ldf_bilapg: requested workspace arrays unavailable')   ;   RETURN 
     97      ENDIF 
    10098 
    10199      IF( kt == nit000 ) THEN 
     
    454452      !                                                ! =============== 
    455453 
    456       IF(wrk_not_released(2, 1,2,3,4,5,6,7,8))THEN 
    457          CALL ctl_stop('dyn:ldfguv : failed to release workspace arrays.') 
    458       END IF 
     454      IF( wrk_not_released(2, 1,2,3,4,5,6,7,8) )   CALL ctl_stop('dyn:ldfguv : failed to release workspace arrays') 
    459455      ! 
    460456   END SUBROUTINE ldfguv 
Note: See TracChangeset for help on using the changeset viewer.