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