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 2910 for branches/2011/dev_r2802_TOP_substepping/NEMOGCM/NEMO/TOP_SRC/trcstp.F90 – NEMO

Ignore:
Timestamp:
2011-10-13T11:41:49+02:00 (13 years ago)
Author:
kpedwards
Message:

Updates from Christian - use kit000 in local TRA code; plus a few style corrections in TRC code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2011/dev_r2802_TOP_substepping/NEMOGCM/NEMO/TOP_SRC/trcstp.F90

    r2892 r2910  
    5151      !!------------------------------------------------------------------- 
    5252 
    53      IF(nn_dttrc .NE. 1) THEN 
    54         CALL trc_sub_stp(kt) 
    55      ENDIF 
     53     IF( nn_dttrc /= 1 )   CALL trc_sub_stp( kt )  ! averaging physical variables for sub-stepping 
     54 
    5655     IF( MOD( kt , nn_dttrc ) == 0 ) THEN      ! only every nn_dttrc time step 
    57  
    5856         ! 
    5957         IF(ln_ctl) THEN 
     
    7371                                   CALL trc_trp( kt )           ! transport of passive tracers 
    7472         IF( kt == nittrc000 )     CALL iom_close( numrtr )     ! close input  passive tracers restart file 
    75          IF( lrst_trc )            CALL trc_rst_wri( kt )       ! write tracer restart file 
    76          IF( lk_trdmld_trc  )      CALL trd_mld_trc( kt )       ! trends: Mixed-layer 
     73         IF( lrst_trc        )     CALL trc_rst_wri( kt )       ! write tracer restart file 
     74         IF( lk_trdmld_trc   )     CALL trd_mld_trc( kt )       ! trends: Mixed-layer 
    7775         ! 
    78          IF(nn_dttrc .NE. 1) THEN 
    79             CALL trc_sub_reset(kt) 
    80          ENDIF 
     76         IF( nn_dttrc /= 1   )     CALL trc_sub_reset( kt )  ! resetting physical variables when sub-stepping 
     77         ! 
    8178      ENDIF 
    8279 
Note: See TracChangeset for help on using the changeset viewer.