1 | MODULE 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 iom |
---|
20 | |
---|
21 | IMPLICIT NONE |
---|
22 | PRIVATE |
---|
23 | |
---|
24 | PUBLIC trc_rst_read_c14b ! called by trcini.F90 module |
---|
25 | PUBLIC trc_rst_wri_c14b ! called by trcini.F90 module |
---|
26 | |
---|
27 | CONTAINS |
---|
28 | |
---|
29 | SUBROUTINE trc_rst_read_c14b( knum ) |
---|
30 | !!---------------------------------------------------------------------- |
---|
31 | !! *** trc_rst_read_c14b *** |
---|
32 | !! |
---|
33 | !! ** Purpose : Read in restart file specific variables from c14b model |
---|
34 | !! |
---|
35 | !!---------------------------------------------------------------------- |
---|
36 | INTEGER, INTENT(in) :: knum ! unit of the restart file |
---|
37 | INTEGER :: jn ! dummy loop indices |
---|
38 | !!---------------------------------------------------------------------- |
---|
39 | |
---|
40 | IF(lwp) WRITE(numout,*) |
---|
41 | IF(lwp) WRITE(numout,*) ' trc_rst_read_c14b : Read specific variables from c14b model ' |
---|
42 | IF(lwp) WRITE(numout,*) ' ~~~~~~~~~~~~~~' |
---|
43 | |
---|
44 | CALL iom_get( knum, jpdom_autoglo, 'qint_c14', qint_c14 ) |
---|
45 | |
---|
46 | END SUBROUTINE trc_rst_read_c14b |
---|
47 | |
---|
48 | SUBROUTINE trc_rst_wri_c14b( kt, kitrst, knum ) |
---|
49 | !!---------------------------------------------------------------------- |
---|
50 | !! *** trc_rst_read_c14b *** |
---|
51 | !! |
---|
52 | !! ** Purpose : Read in restart file specific variables from c14b model |
---|
53 | !! |
---|
54 | !!---------------------------------------------------------------------- |
---|
55 | INTEGER, INTENT(in) :: kt ! time step |
---|
56 | INTEGER, INTENT(in) :: kitrst ! time step of restart write |
---|
57 | INTEGER, INTENT(in) :: knum ! unit of the restart file |
---|
58 | !!---------------------------------------------------------------------- |
---|
59 | |
---|
60 | IF(lwp) WRITE(numout,*) |
---|
61 | IF(lwp) WRITE(numout,*) ' trc_rst_wri_c14b : Write specific variables from c14b model ' |
---|
62 | IF(lwp) WRITE(numout,*) ' ~~~~~~~~~~~~~~' |
---|
63 | |
---|
64 | CALL iom_rstput( kt, kitrst, knum, 'qint_c14', qint_c14 ) |
---|
65 | |
---|
66 | END SUBROUTINE trc_rst_wri_c14b |
---|
67 | |
---|
68 | #else |
---|
69 | !!---------------------------------------------------------------------- |
---|
70 | !! Dummy module : No passive tracer |
---|
71 | !!---------------------------------------------------------------------- |
---|
72 | CONTAINS |
---|
73 | SUBROUTINE trc_rst_read_c14b( knum ) |
---|
74 | INTEGER, INTENT(in) :: knum |
---|
75 | WRITE(*,*) 'trc_rst_wri_c14b: You should not have seen this print! error?', knum |
---|
76 | END SUBROUTINE trc_rst_read_c14b |
---|
77 | |
---|
78 | SUBROUTINE trc_rst_wri_c14b( kt, kitrst, knum ) |
---|
79 | INTEGER, INTENT(in) :: kt, kitrst, knum |
---|
80 | WRITE(*,*) 'trc_rst_wri_c14b: You should not have seen this print! error?', kt, kitrst, knum |
---|
81 | END SUBROUTINE trc_rst_wri_c14b |
---|
82 | #endif |
---|
83 | |
---|
84 | !!====================================================================== |
---|
85 | END MODULE trcrst_c14b |
---|