1 | MODULE trcwri_cfc |
---|
2 | !!====================================================================== |
---|
3 | !! *** MODULE trcwri *** |
---|
4 | !! cfc : Output of cfc tracers |
---|
5 | !!====================================================================== |
---|
6 | !! History : 1.0 ! 2009-05 (C. Ethe) Original code |
---|
7 | !!---------------------------------------------------------------------- |
---|
8 | #if defined key_top && defined key_iomput |
---|
9 | !!---------------------------------------------------------------------- |
---|
10 | !! trc_wri_cfc : outputs of concentration fields |
---|
11 | !!---------------------------------------------------------------------- |
---|
12 | USE trc ! passive tracers common variables |
---|
13 | USE iom ! I/O manager |
---|
14 | |
---|
15 | IMPLICIT NONE |
---|
16 | PRIVATE |
---|
17 | |
---|
18 | PUBLIC trc_wri_cfc |
---|
19 | |
---|
20 | CONTAINS |
---|
21 | |
---|
22 | SUBROUTINE trc_wri_cfc( Kmm ) |
---|
23 | !!--------------------------------------------------------------------- |
---|
24 | !! *** ROUTINE trc_wri_trc *** |
---|
25 | !! |
---|
26 | !! ** Purpose : output passive tracers fields |
---|
27 | !!--------------------------------------------------------------------- |
---|
28 | INTEGER, INTENT(in) :: Kmm ! time level indices |
---|
29 | CHARACTER (len=20) :: cltra |
---|
30 | INTEGER :: jn |
---|
31 | !!--------------------------------------------------------------------- |
---|
32 | |
---|
33 | ! write the tracer concentrations in the file |
---|
34 | ! --------------------------------------- |
---|
35 | DO jn = jp_cfc0, jp_cfc1 |
---|
36 | cltra = TRIM( ctrcnm(jn) ) ! short title for tracer |
---|
37 | CALL iom_put( cltra, tr(:,:,:,jn,Kmm) ) |
---|
38 | END DO |
---|
39 | ! |
---|
40 | END SUBROUTINE trc_wri_cfc |
---|
41 | |
---|
42 | #else |
---|
43 | !!---------------------------------------------------------------------- |
---|
44 | !! Dummy module : No passive tracer |
---|
45 | !!---------------------------------------------------------------------- |
---|
46 | PUBLIC trc_wri_cfc |
---|
47 | CONTAINS |
---|
48 | SUBROUTINE trc_wri_cfc ! Empty routine |
---|
49 | END SUBROUTINE trc_wri_cfc |
---|
50 | #endif |
---|
51 | |
---|
52 | !!---------------------------------------------------------------------- |
---|
53 | !! NEMO/TOP 4.0 , NEMO Consortium (2018) |
---|
54 | !! $Id$ |
---|
55 | !! Software governed by the CeCILL license (see ./LICENSE) |
---|
56 | !!====================================================================== |
---|
57 | END MODULE trcwri_cfc |
---|