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.
trcwri.mpp.h in trunk/NEMO/TOP_SRC – NEMO

source: trunk/NEMO/TOP_SRC/trcwri.mpp.h @ 247

Last change on this file since 247 was 247, checked in by opalod, 19 years ago

CL : Add CVS Header and CeCILL licence information

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.4 KB
Line 
1CCC $Header$ 
2CCC  TOP 1.0 , LOCEAN-IPSL (2005) 
3C This software is governed by CeCILL licence see modipsl/doc/NEMO_CeCILL.txt
4C ---------------------------------------------------------------------------
5CCC
6CCC                       trcwri.mpp
7CCC                     **************
8CCC
9CDIR$ NOLIST
10      USE oce_trc
11      USE trc
12      IMPLICIT NONE
13
14CDIR$ LIST
15CC----------------------------------------------------------------------
16CC local declarations
17CC ==================
18      INTEGER kt
19
20#if defined key_passivetrc
21
22      INTEGER jn
23      INTEGER ino0,it0,iarak0
24
25C
26C
27C 1. OUTPUT of restart fields (nutwrs)
28C ---------------------------
29C
30      IF( (mod(kt,nstock).eq.0) .OR. (kt.eq.nitend) ) THEN
31C
32C 1.0 initializations
33C
34          IF(lwp) THEN
35              WRITE(numout,*) ' '
36              WRITE(numout,*)
37     $            ' trcwri: restart OUTPUT done in nutwrs = ',nutwrs
38     $            ,' at it= ',kt,' date= ',ndastp
39              WRITE(numout,*) ' -------'
40          ENDIF
41C
42          ino0 =no
43          it0  =kt
44
45#if defined key_trc_cen2
46          iarak0=1
47#else
48          iarak0=0
49#endif
50C
51C 1.1 WRITE
52C
53C first record
54C
55          IF(lwp) WRITE (nutwrs,REC=1) ino0,it0,iarak0
56C
57C prognostic variables
58C
59
60          DO jn=1,jptra
61            CALL write3(nutwrs,trn(1,1,1,jn), jn + 1 )
62          END DO
63
64          DO jn=1,jptra
65            CALL write3(nutwrs,trb(1,1,1,jn), jptra + jn + 1 )
66          END DO
67      ENDIF
68C
Note: See TracBrowser for help on using the repository browser.