Changeset 2715 for trunk/NEMOGCM/NEMO/TOP_SRC/TRP/trcnxt.F90
- Timestamp:
- 2011-03-30T17:58:35+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMOGCM/NEMO/TOP_SRC/TRP/trcnxt.F90
r2528 r2715 3 3 !! *** MODULE trcnxt *** 4 4 !! Ocean passive tracers: time stepping on passives tracers 5 !!======================================================================6 5 !!====================================================================== 7 6 !! History : 7.0 ! 1991-11 (G. Madec) Original code … … 27 26 !! trc_nxt : time stepping on passive tracers 28 27 !!---------------------------------------------------------------------- 29 !! * Modules used30 28 USE oce_trc ! ocean dynamics and tracers variables 31 29 USE trc ! ocean passive tracers variables … … 43 41 PRIVATE 44 42 45 !! * Routine accessibility46 PUBLIC trc_nxt ! routine called by step.F9043 PUBLIC trc_nxt ! routine called by step.F90 44 PUBLIC trc_nxt_alloc ! routine called by nemogcm.F90 47 45 48 REAL(wp), DIMENSION(jpk) :: r2dt 46 REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:) :: r2dt 47 49 48 !!---------------------------------------------------------------------- 50 49 !! NEMO/TOP 3.3 , NEMO Consortium (2010) 51 50 !! $Id$ 52 !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt)51 !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 53 52 !!---------------------------------------------------------------------- 53 CONTAINS 54 54 55 CONTAINS 55 INTEGER FUNCTION trc_nxt_alloc() 56 !!---------------------------------------------------------------------- 57 !! *** ROUTINE trc_nxt_alloc *** 58 !!---------------------------------------------------------------------- 59 ALLOCATE( r2dt(jpk), STAT=trc_nxt_alloc ) 60 ! 61 IF( trc_nxt_alloc /= 0 ) CALL ctl_warn('trc_nxt_alloc : failed to allocate array') 62 ! 63 END FUNCTION trc_nxt_alloc 64 56 65 57 66 SUBROUTINE trc_nxt( kt ) … … 79 88 !! ** Action : - update trb, trn 80 89 !!---------------------------------------------------------------------- 81 !! * Arguments82 90 INTEGER, INTENT( in ) :: kt ! ocean time-step index 83 ! ! * Local declarations91 ! 84 92 INTEGER :: jk, jn ! dummy loop indices 85 93 REAL(wp) :: zfact ! temporary scalar
Note: See TracChangeset
for help on using the changeset viewer.