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/TOP_SRC/TRP/trcsbc.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/TOP_SRC/TRP/trcsbc.F90

    r2633 r2636  
    1616   !!   trc_sbc      : update the tracer trend at ocean surface 
    1717   !!---------------------------------------------------------------------- 
    18    !! * Modules used 
    19    USE oce_trc             ! ocean dynamics and active tracers variables 
    20    USE trc                 ! ocean  passive tracers variables 
    21    USE prtctl_trc          ! Print control for debbuging 
     18   USE oce_trc         ! ocean dynamics and active tracers variables 
     19   USE trc             ! ocean  passive tracers variables 
     20   USE prtctl_trc      ! Print control for debbuging 
    2221   USE trdmod_oce 
    2322   USE trdtra 
     23   USE lib_mpp         ! MPP library 
    2424 
    2525   IMPLICIT NONE 
    2626   PRIVATE 
    2727 
    28    !! * Routine accessibility 
    29    PUBLIC trc_sbc              ! routine called by step.F90 
     28   PUBLIC   trc_sbc   ! routine called by step.F90 
    3029 
    3130   !! * Substitutions 
     
    3433   !! NEMO/TOP 3.3 , NEMO Consortium (2010) 
    3534   !! $Id$  
    36    !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 
     35   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt) 
    3736   !!---------------------------------------------------------------------- 
    38  
    3937CONTAINS 
    4038 
     
    6260      USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released 
    6361      USE wrk_nemo, zemps => wrk_2d_1 
    64       !! * Arguments 
     62      ! 
    6563      INTEGER, INTENT( in ) ::   kt          ! ocean time-step index 
    66  
    67       !! * Local declarations 
     64      ! 
    6865      INTEGER  ::   ji, jj, jn           ! dummy loop indices 
    6966      REAL(wp) ::   zsrau, zse3t   ! temporary scalars 
     
    7370 
    7471      IF(wrk_in_use(2, 1))THEN 
    75          CALL ctl_stop('trc_sbc: requested workspace array unavailable.') 
    76          RETURN 
     72         CALL ctl_stop('trc_sbc: requested workspace array unavailable.')   ;   RETURN 
    7773      END IF 
    7874 
     
    126122      ENDIF 
    127123 
    128       IF(wrk_not_released(2, 1))THEN 
    129          CALL ctl_stop('trc_sbc: failed to release workspace array.') 
    130       END IF 
    131  
     124      IF( wrk_not_released(2, 1) )   CALL ctl_stop('trc_sbc: failed to release workspace array') 
     125      ! 
    132126   END SUBROUTINE trc_sbc 
    133127 
Note: See TracChangeset for help on using the changeset viewer.