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_c14b.F90 in branches/nemo_v3_3_beta/NEMOGCM/NEMO/TOP_SRC/C14b – NEMO

source: branches/nemo_v3_3_beta/NEMOGCM/NEMO/TOP_SRC/C14b/trcrst_c14b.F90 @ 2281

Last change on this file since 2281 was 2281, checked in by smasson, 14 years ago

set proper svn properties to all files...

  • Property svn:keywords set to Id
File size: 3.7 KB
Line 
1MODULE trcrst_c14b
2   !!======================================================================
3   !!                       ***  MODULE trcrst_c14b  ***
4   !! TOP :   create, write, read the restart files of c14b tracer
5   !!======================================================================
6   !! History :   1.0  !  2010-01 (C. Ethe) Original
7   !!----------------------------------------------------------------------
8#if defined key_c14b
9   !!----------------------------------------------------------------------
10   !!   'key_c14b'                                               c14b tracers
11   !!----------------------------------------------------------------------
12   !!   trc_rst_read_c14b   : read  restart file
13   !!   trc_rst_wri_c14b    : write restart file
14   !!----------------------------------------------------------------------
15   USE oce_trc         ! Ocean variables
16   USE par_trc         ! TOP parameters
17   USE trc             ! TOP variables
18   USE trcsms_c14b          ! c14b sms trends
19   USE in_out_manager  ! I/O manager
20   USE iom
21
22   IMPLICIT NONE
23   PRIVATE
24
25   PUBLIC  trc_rst_read_c14b   ! called by trcini.F90 module
26   PUBLIC  trc_rst_wri_c14b   ! called by trcini.F90 module
27
28CONTAINS
29   
30   SUBROUTINE trc_rst_read_c14b( knum ) 
31      !!----------------------------------------------------------------------
32      !!                     ***  trc_rst_read_c14b  *** 
33      !!
34      !! ** Purpose : Read in restart file specific variables from c14b model
35      !!
36      !!----------------------------------------------------------------------
37      INTEGER, INTENT(in)  :: knum  ! unit of the restart file
38      INTEGER              :: jn    ! dummy loop indices
39      !!----------------------------------------------------------------------
40
41      IF(lwp) WRITE(numout,*)
42      IF(lwp) WRITE(numout,*) ' trc_rst_read_c14b : Read specific variables from c14b model '
43      IF(lwp) WRITE(numout,*) ' ~~~~~~~~~~~~~~'
44     
45      CALL iom_get( knum, jpdom_autoglo, 'qint_c14', qint_c14 ) 
46
47   END SUBROUTINE trc_rst_read_c14b
48
49   SUBROUTINE trc_rst_wri_c14b( kt, kitrst, knum )
50      !!----------------------------------------------------------------------
51      !!                     ***  trc_rst_read_c14b  ***
52      !!
53      !! ** Purpose : Read in restart file specific variables from c14b model
54      !!
55      !!----------------------------------------------------------------------
56      INTEGER, INTENT(in)  :: kt      ! time step
57      INTEGER, INTENT(in)  :: kitrst  ! time step of restart write
58      INTEGER, INTENT(in)  :: knum    ! unit of the restart file
59      !!----------------------------------------------------------------------
60
61      IF(lwp) WRITE(numout,*)
62      IF(lwp) WRITE(numout,*) ' trc_rst_wri_c14b : Write specific variables from c14b model '
63      IF(lwp) WRITE(numout,*) ' ~~~~~~~~~~~~~~'
64
65      CALL iom_rstput( kt, kitrst, knum, 'qint_c14', qint_c14 )
66
67   END SUBROUTINE trc_rst_wri_c14b
68
69#else
70   !!----------------------------------------------------------------------
71   !!  Dummy module :                                     No passive tracer
72   !!----------------------------------------------------------------------
73CONTAINS
74   SUBROUTINE trc_rst_read_c14b( knum )
75     INTEGER, INTENT(in)  :: knum
76     WRITE(*,*) 'trc_rst_wri_c14b: You should not have seen this print! error?', knum
77   END SUBROUTINE trc_rst_read_c14b
78
79   SUBROUTINE trc_rst_wri_c14b( kt, kitrst, knum )
80     INTEGER, INTENT(in)  :: kt, kitrst, knum
81     WRITE(*,*) 'trc_rst_wri_c14b: You should not have seen this print! error?', kt, kitrst, knum
82   END SUBROUTINE trc_rst_wri_c14b
83#endif
84
85   !!======================================================================
86END MODULE trcrst_c14b
Note: See TracBrowser for help on using the repository browser.