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

source: trunk/NEMO/TOP_SRC/trcrst.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: 3.0 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                       trcrst.mpp.h
7CCC                     ***************
8CCC
9CDIR$ NOLIST
10      USE oce_trc
11      USE trc
12      USE sms
13      IMPLICIT NONE
14CDIR$ LIST
15#if defined key_passivetrc
16CC----------------------------------------------------------------------
17CC local declarations
18CC ==================
19      INTEGER ino0,ino1,it0,it1,idast1,jn,iarak0,iarak1
20
21C
22C
23C 0. initialisations
24C ------------------
25C
26      ino0 =no
27      it0  =nit000
28
29#if defined key_trc_cen2
30      iarak0=1
31#else
32      iarak0=0
33#endif
34C
35      IF(lwp) THEN
36          WRITE(numout,*) ' '
37          WRITE(numout,*) ' *** trcrst beginning of restart for'
38          WRITE(numout,*) ' passive tracer'
39          WRITE(numout,*) ' the present run :'
40          WRITE(numout,*) '   number job is  : ',no
41          WRITE(numout,*) '   with the time nit000 : ',nit000
42          IF(iarak0.eq.1) then
43              WRITE(numout,*) '   and before fields for Arakawa sheme '
44          ENDIF
45          WRITE(numout,*) ' '
46      ENDIF
47C
48C 1. READ
49C -------
50C
51C 1.1 first record
52C
53      READ(nutrst,REC=1) ino1,it1,iarak1
54C
55      IF(lwp) THEN
56          WRITE(numout,*) ' '
57          WRITE(numout,*) ' READ nutrst with '
58          WRITE(numout,*) '   number job is  : ',ino1
59          WRITE(numout,*) '   with the time it : ',it1
60          IF(iarak1.eq.1) then
61              WRITE(numout,*) '   and before fields for Arakawa sheme '
62          ENDIF
63          WRITE(numout,*) ' '
64      ENDIF
65C
66C 1.2 control of date
67C
68      IF((it0-it1).ne.1.and.abs(nrsttr).eq.1) THEN
69          IF(lwp) THEN
70              WRITE(numout,*) ' ===>>>> : problem with nit000 for the',
71     $            ' passive tracer restart'
72              WRITE(numout,*) ' =======                              ',
73     $            ' ======================'
74              WRITE(numout,*) ' we stop. verify the FILE'
75              WRITE(numout,*) ' or rerun with the value  0 for the'
76              WRITE(numout,*) ' control of time PARAMETER   nrstdt'
77              WRITE(numout,*) ' '
78          ENDIF
79          STOP 'trcrst'
80      ENDIF
81C
82C 1.3 Control of the sheme
83C
84      IF(iarak0.ne.iarak1) THEN
85          IF(lwp) THEN
86              WRITE(numout,*) ' ===>>>> : problem with the',
87     $            ' passive tracer restart file'
88              WRITE(numout,*) ' =======                              ',
89     $            ' ==========================='
90              WRITE(numout,*) ' we stop. verify the FILE'
91              WRITE(numout,*) ' before field required IF 1=',iarak0
92              WRITE(numout,*) ' before field present in file IF 1=',
93     $            iarak1
94              WRITE(numout,*) ' '
95          ENDIF
96          STOP 'trcrst'
97      ENDIF
98
99C
100C 1.4 READ prognostic variables
101C
102      DO jn=1,jptra
103        CALL read3(nutrst,trn(1,1,1,jn), jn + 1 )
104      END DO
105
106      DO jn=1,jptra
107        CALL read3(nutrst,trb(1,1,1,jn), jptra + jn + 1 )
108      END DO
109
110
Note: See TracBrowser for help on using the repository browser.