1 | MODULE trcwri |
---|
2 | !!====================================================================== |
---|
3 | !! *** MODULE trcwri *** |
---|
4 | !! TOP : Output of passive tracers |
---|
5 | !!====================================================================== |
---|
6 | !! 1.0 ! |
---|
7 | !! ! 2009-05 (C. Ethe ) |
---|
8 | !!---------------------------------------------------------------------- |
---|
9 | #if defined key_top && defined key_iomput |
---|
10 | !!---------------------------------------------------------------------- |
---|
11 | !! 'key_top' && 'key_iomput' TOP models |
---|
12 | !!---------------------------------------------------------------------- |
---|
13 | !! trc_wri : outputs of concentration fields |
---|
14 | !!---------------------------------------------------------------------- |
---|
15 | USE trc |
---|
16 | USE iom |
---|
17 | |
---|
18 | IMPLICIT NONE |
---|
19 | PRIVATE |
---|
20 | |
---|
21 | PUBLIC trc_wri |
---|
22 | |
---|
23 | !! * Substitutions |
---|
24 | # include "top_substitute.h90" |
---|
25 | !!---------------------------------------------------------------------- |
---|
26 | !! NEMO/TOP 1.0 , LOCEAN-IPSL (2005) |
---|
27 | !! $Id: trcdia.F90 1450 2009-05-15 14:12:12Z cetlod $ |
---|
28 | !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) |
---|
29 | !!---------------------------------------------------------------------- |
---|
30 | |
---|
31 | CONTAINS |
---|
32 | |
---|
33 | SUBROUTINE trc_wri( kt ) |
---|
34 | !!--------------------------------------------------------------------- |
---|
35 | !! *** ROUTINE trc_wri *** |
---|
36 | !! |
---|
37 | !! ** Purpose : output passive tracers fields |
---|
38 | !!--------------------------------------------------------------------- |
---|
39 | INTEGER, INTENT( in ) :: kt ! ocean time-step |
---|
40 | INTEGER :: jn |
---|
41 | CHARACTER (len=20) :: cltra |
---|
42 | !!--------------------------------------------------------------------- |
---|
43 | |
---|
44 | ! Initialisation |
---|
45 | ! -------------- |
---|
46 | |
---|
47 | CALL iom_setkt( kt + ndttrc - 1 ) ! set the passive tracer time step |
---|
48 | |
---|
49 | ! write the tracer concentrations in the file |
---|
50 | ! --------------------------------------- |
---|
51 | DO jn = 1, jptra |
---|
52 | cltra = ctrcnm(jn) ! short title for tracer |
---|
53 | CALL iom_put( cltra, trn(:,:,:,jn) ) |
---|
54 | END DO |
---|
55 | ! |
---|
56 | CALL iom_setkt( kt ) ! set the model time step |
---|
57 | |
---|
58 | ! |
---|
59 | END SUBROUTINE trc_wri |
---|
60 | |
---|
61 | #else |
---|
62 | !!---------------------------------------------------------------------- |
---|
63 | !! Dummy module : No passive tracer |
---|
64 | !!---------------------------------------------------------------------- |
---|
65 | PUBLIC trc_wri |
---|
66 | CONTAINS |
---|
67 | SUBROUTINE trc_wri( kt ) ! Empty routine |
---|
68 | INTEGER, INTENT(in) :: kt |
---|
69 | END SUBROUTINE trc_wri |
---|
70 | |
---|
71 | #endif |
---|
72 | |
---|
73 | !!====================================================================== |
---|
74 | END MODULE trcwri |
---|