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/LOBSTER/trcsms_lobster.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/LOBSTER/trcsms_lobster.F90

    r2633 r2636  
    1313   !!   trcsms_lobster        :  Time loop of passive tracers sms 
    1414   !!---------------------------------------------------------------------- 
    15    USE oce_trc         ! 
     15   USE oce_trc          ! 
    1616   USE trc 
    1717   USE trcbio 
     
    2323   USE trdmod_trc 
    2424   USE trdmld_trc 
     25   USE lib_mpp          ! MPP library 
    2526 
    2627   IMPLICIT NONE 
     
    3233   !! NEMO/TOP 3.3 , NEMO Consortium (2010) 
    3334   !! $Id$  
    34    !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 
     35   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt) 
    3536   !!---------------------------------------------------------------------- 
    36  
    3737CONTAINS 
    3838 
     
    5353      !! -------------------------------------------------------------------- 
    5454 
    55       IF(wrk_in_use(3,1))THEN 
    56          CALL ctl_stop('trc_sms_lobster : requested workspace array unavailable.') 
    57          RETURN 
    58       END IF 
     55      IF( wrk_in_use(3,1) ) THEN 
     56         CALL ctl_stop('trc_sms_lobster : requested workspace array unavailable')   ;   RETURN 
     57      ENDIF 
    5958 
    6059      CALL trc_opt( kt )      ! optical model 
     
    7271      IF( lk_trdmld_trc )  CALL trd_mld_bio( kt )   ! trends: Mixed-layer 
    7372 
    74       IF(wrk_not_released(3,1))THEN 
    75          CALL ctl_stop('trc_sms_lobster : failed to release workspace array.') 
    76       END IF 
    77  
     73      IF( wrk_not_released(3,1) )   CALL ctl_stop('trc_sms_lobster : failed to release workspace array.') 
     74      ! 
    7875   END SUBROUTINE trc_sms_lobster 
    7976 
Note: See TracChangeset for help on using the changeset viewer.