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/dynspg.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/dynspg.F90

    r2633 r2636  
    1414   USE oce            ! ocean dynamics and tracers variables 
    1515   USE dom_oce        ! ocean space and time domain variables 
     16   USE phycst         ! physical constants 
    1617   USE obc_oce        ! ocean open boundary conditions 
    1718   USE sbc_oce        ! surface boundary condition: ocean 
     
    2627   USE prtctl         ! Print control                     (prt_ctl routine) 
    2728   USE in_out_manager ! I/O manager 
    28    USE phycst         ! physical constants 
     29   USE lib_mpp        ! MPP library 
    2930 
    3031   IMPLICIT NONE 
     
    4243   !! NEMO/OPA 3.2 , LODYC-IPSL  (2009) 
    4344   !! $Id$  
    44    !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 
    45    !!---------------------------------------------------------------------- 
    46  
     45   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt) 
     46   !!---------------------------------------------------------------------- 
    4747CONTAINS 
    4848 
     
    8383      !!---------------------------------------------------------------------- 
    8484 
    85       IF(wrk_in_use(3, 4,5))THEN 
    86          CALL ctl_stop('dyn_spg: requested workspace arrays unavailable.') 
    87          RETURN 
    88       END IF 
     85      IF( wrk_in_use(3, 4,5) ) THEN 
     86         CALL ctl_stop('dyn_spg: requested workspace arrays unavailable')   ;   RETURN 
     87      ENDIF 
    8988 
    9089!!gm NOTA BENE : the dynspg_exp and dynspg_ts should be modified so that  
     
    154153         &                       tab3d_2=va, clinfo2=       ' Va: ', mask2=vmask, clinfo3='dyn' ) 
    155154      ! 
    156       IF(wrk_not_released(3, 4,5))THEN 
    157          CALL ctl_stop('dyn_spg: failed to release workspace arrays.') 
    158       END IF 
     155      IF( wrk_not_released(3, 4,5) )   CALL ctl_stop('dyn_spg: failed to release workspace arrays') 
    159156      ! 
    160157   END SUBROUTINE dyn_spg 
     
    181178 
    182179      !                        ! allocate dyn_spg arrays 
    183       IF( lk_dynspg_ts  .AND. dyn_spg_ts_alloc () /= 0 )   CALL ctl_stop('STOP', 'dyn_spg_init: failed to allocate ts  arrays') 
     180      IF( lk_dynspg_ts .AND.dyn_spg_ts_alloc() /= 0 )   CALL ctl_stop('STOP', 'dyn_spg_init: failed to allocate ts  arrays') 
    184181 
    185182      !                        ! Control of surface pressure gradient scheme options 
Note: See TracChangeset for help on using the changeset viewer.