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 771 for branches/dev_001_GM/NEMO/TOP_SRC/trcstp.F90 – NEMO

Ignore:
Timestamp:
2007-12-17T11:51:41+01:00 (16 years ago)
Author:
gm
Message:

dev_001_GM - small error corrections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev_001_GM/NEMO/TOP_SRC/trcstp.F90

    r768 r771  
    22   !!====================================================================== 
    33   !!                       ***  MODULE trcstp  *** 
    4    !! Time-stepping    : time loop of opa for passive tracer 
     4   !! TOP :   time stepping of TOP models (passive tracers) 
    55   !!====================================================================== 
     6   !! History :   1.0  !  2004-03 (C. Ethe) Original code 
     7   !!---------------------------------------------------------------------- 
    68#if defined key_passivetrc 
    79   !!---------------------------------------------------------------------- 
    8    !!   trc_stp      : passive tracer system time-stepping 
     10   !!   'key_passivetrc'                                         TOP models 
    911   !!---------------------------------------------------------------------- 
    10    !! * Modules used 
    11    USE oce_trc          ! ocean dynamics and active tracers variables 
    12    USE trc              ! ocean passive tracers variables  
    13    USE trctrp           ! passive tracers transport 
    14    USE trcsms           ! passive tracers sources and sinks 
    15    USE prtctl_trc       ! Print control for debbuging 
    16    USE trcdia 
    17    USE trcdit 
    18    USE trcrst 
     12   !!   trc_stp       : passive tracer system time-stepping 
     13   !!---------------------------------------------------------------------- 
     14   USE oce_trc        ! ocean dynamics and active tracers variables 
     15   USE trc            ! ocean passive tracers variables  
     16   USE trctrp         ! passive tracers transport 
     17   USE trcsms         ! passive tracers sources and sinks 
     18   USE prtctl_trc     ! Print control for debbuging 
     19   USE trcdia         ! passive tracer diagnostics 
     20   USE trcdit         ! ??? 
     21   USE trcrst         ! ??? 
    1922 
    2023   IMPLICIT NONE 
    2124   PRIVATE 
    2225 
    23    !! * Routine accessibility 
    24    PUBLIC trc_stp           ! called by step 
     26   PUBLIC   trc_stp   ! called in step.F90 module 
     27 
    2528   !!---------------------------------------------------------------------- 
    26    !!   TOP 1.0 , LOCEAN-IPSL (2005)  
    27    !! $Header$  
    28    !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt  
     29   !! NEMO/TOP 1.0 , LOCEAN-IPSL (2005)  
     30   !! $Id$  
     31   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
    2932   !!---------------------------------------------------------------------- 
    3033 
     
    3235 
    3336   SUBROUTINE trc_stp( kt, kindic ) 
    34       !!------------------------------------------------------------------- 
     37      !!---------------------------------------------------------------------- 
    3538      !!                     ***  ROUTINE trc_stp  *** 
    3639      !!                       
    37       !! ** Purpose : Time loop of opa for passive tracer 
     40      !! ** Purpose :   Time loop of TOP passive tracer 
    3841      !!  
    39       !! ** Method  :  
    40       !!              Compute the passive tracers trends  
    41       !!              Update the passive tracers 
    42       !! 
    43       !! History : 
    44       !!   9.0  !  04-03  (C. Ethe)  Original 
    45       !!------------------------------------------------------------------- 
    46       !! * Arguments 
    47       INTEGER, INTENT( in ) ::  kt  ! ocean time-step index 
    48       INTEGER, INTENT( in ) ::  kindic 
     42      !! ** Method  :   Compute the passive tracers trends  
     43      !!                Update the passive tracers 
     44      !!---------------------------------------------------------------------- 
     45      INTEGER, INTENT( in ) ::   kt       ! ocean time-step index 
     46      INTEGER, INTENT( in ) ::   kindic   ! ??? 
    4947      CHARACTER (len=25) :: charout 
     48      !!---------------------------------------------------------------------- 
    5049 
    51       ! this ROUTINE is called only every ndttrc time step 
    52       IF( MOD( kt , ndttrc ) /= 0 ) RETURN 
     50      IF( MOD( kt, ndttrc ) /= 0 )   RETURN            ! routine called only every ndttrc time step 
    5351 
    54       CALL trc_rst_opn( kt )      ! Open tracer restart file  
    55  
    56        ! tracers: sink and source  
    5752      IF(ln_ctl) THEN 
    5853         WRITE(charout,FMT="('kt =', I4,'  d/m/y =',I2,I2,I4)") kt, nday, nmonth, nyear 
     
    6055      ENDIF 
    6156 
    62       CALL trc_sms( kt ) 
     57                       CALL trc_rst_opn( kt )          ! Open tracer restart file  
    6358 
    64       IF(ln_ctl)   THEN  ! print mean trends (used for debugging) 
    65          WRITE(charout, FMT="('SMS')") 
    66          CALL prt_ctl_trc_info(charout) 
    67          CALL prt_ctl_trc(tab4d=tra, mask=tmask, clinfo=ctrcnm) 
    68       ENDIF 
     59                       CALL trc_sms( kt )              ! sink and source of passive tracers 
    6960 
    70       ! transport of passive tracers 
    71       CALL trc_trp( kt ) 
     61                       CALL trc_trp( kt )              ! transport of passive tracers 
    7262 
    73       IF(ln_ctl)   THEN  ! print mean trends (used for debugging) 
    74          WRITE(charout, FMT="('TRP')") 
    75          CALL prt_ctl_trc_info(charout) 
    76          CALL prt_ctl_trc(tab4d=tra, mask=tmask, clinfo=ctrcnm) 
    77       ENDIF 
     63      IF( lrst_trc )   CALL trc_rst_wri( kt )          ! write tracer restart file 
    7864 
    79       IF( lrst_trc ) CALL trc_rst_wri( kt )  ! write tracer restart file 
    80  
    81       CALL trc_dia( kt, kindic )     ! diagnostics 
    82  
    83  
     65                       CALL trc_dia( kt, kindic )      ! diagnostics 
     66      ! 
    8467   END SUBROUTINE trc_stp 
    8568 
    8669#else 
    8770   !!---------------------------------------------------------------------- 
    88    !!   Default key                                     NO passive tracers 
     71   !!   Dummy module                                          No TOP models 
    8972   !!---------------------------------------------------------------------- 
    9073CONTAINS 
Note: See TracChangeset for help on using the changeset viewer.