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

    r2610 r2636  
    33   !!                       ***  MODULE  trcnxt  *** 
    44   !! Ocean passive tracers:  time stepping on passives tracers 
    5    !!====================================================================== 
    65   !!====================================================================== 
    76   !! History :  7.0  !  1991-11  (G. Madec)  Original code 
     
    2726   !!   trc_nxt     : time stepping on passive tracers 
    2827   !!---------------------------------------------------------------------- 
    29    !! * Modules used 
    3028   USE oce_trc         ! ocean dynamics and tracers variables 
    3129   USE trc             ! ocean passive tracers variables 
     
    4341   PRIVATE 
    4442 
    45    !! * Routine accessibility 
    46    PUBLIC trc_nxt          ! routine called by step.F90 
    47    PUBLIC trc_nxt_alloc    ! routine called by nemogcm.F90 
     43   PUBLIC   trc_nxt          ! routine called by step.F90 
     44   PUBLIC   trc_nxt_alloc    ! routine called by nemogcm.F90 
    4845 
    4946   REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:) ::   r2dt 
     47 
    5048   !!---------------------------------------------------------------------- 
    5149   !! NEMO/TOP 3.3 , NEMO Consortium (2010) 
    5250   !! $Id$  
    53    !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 
     51   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt) 
    5452   !!---------------------------------------------------------------------- 
    55  
    5653CONTAINS 
    5754 
    58    FUNCTION trc_nxt_alloc() 
     55   INTEGER FUNCTION trc_nxt_alloc() 
    5956      !!---------------------------------------------------------------------- 
    6057      !!                   ***  ROUTINE trc_nxt_alloc  *** 
    6158      !!---------------------------------------------------------------------- 
    62       INTEGER :: trc_nxt_alloc 
     59      USE lib_mpp, ONLY: ctl_warn 
    6360      !!---------------------------------------------------------------------- 
    64  
     61      ! 
    6562      ALLOCATE( r2dt(jpk), Stat=trc_nxt_alloc) 
    66  
    67       IF(trc_nxt_alloc /= 0)THEN 
    68          CALL ctl_warn('trc_nxt_alloc : failed to allocate array.') 
    69       ENDIF 
    70  
     63      ! 
     64      IF( trc_nxt_alloc /= 0 )   CALL ctl_warn('trc_nxt_alloc : failed to allocate array') 
     65      ! 
    7166   END FUNCTION trc_nxt_alloc 
    7267 
Note: See TracChangeset for help on using the changeset viewer.