[3444] | 1 | MODULE trcwri_my_trc |
---|
| 2 | !!====================================================================== |
---|
| 3 | !! *** MODULE trcwri *** |
---|
[7646] | 4 | !! trc_wri_my_trc : outputs of concentration fields |
---|
[3444] | 5 | !!====================================================================== |
---|
[7646] | 6 | #if defined key_top && defined key_iomput |
---|
[3444] | 7 | !!---------------------------------------------------------------------- |
---|
[7646] | 8 | !! History : ! 2007 (C. Ethe, G. Madec) Original code |
---|
| 9 | !! ! 2016 (C. Ethe, T. Lovato) Revised architecture |
---|
[3444] | 10 | !!---------------------------------------------------------------------- |
---|
[7646] | 11 | USE par_trc ! passive tracers common variables |
---|
[3444] | 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 | |
---|
[7646] | 20 | !!---------------------------------------------------------------------- |
---|
[9598] | 21 | !! NEMO/TOP 4.0 , NEMO Consortium (2018) |
---|
[7646] | 22 | !! $Id$ |
---|
[10068] | 23 | !! Software governed by the CeCILL license (see ./LICENSE) |
---|
[7646] | 24 | !!---------------------------------------------------------------------- |
---|
[3444] | 25 | CONTAINS |
---|
| 26 | |
---|
[11949] | 27 | SUBROUTINE trc_wri_my_trc( Kmm ) |
---|
[3444] | 28 | !!--------------------------------------------------------------------- |
---|
| 29 | !! *** ROUTINE trc_wri_trc *** |
---|
| 30 | !! |
---|
| 31 | !! ** Purpose : output passive tracers fields |
---|
| 32 | !!--------------------------------------------------------------------- |
---|
[11949] | 33 | INTEGER, INTENT(in) :: Kmm ! time level indices |
---|
[3444] | 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 |
---|
[11949] | 42 | CALL iom_put( cltra, tr(:,:,:,jn,Kmm) ) |
---|
[3444] | 43 | END DO |
---|
| 44 | ! |
---|
| 45 | END SUBROUTINE trc_wri_my_trc |
---|
| 46 | |
---|
| 47 | #else |
---|
[7646] | 48 | |
---|
[3444] | 49 | CONTAINS |
---|
[7646] | 50 | |
---|
| 51 | SUBROUTINE trc_wri_my_trc |
---|
| 52 | ! |
---|
[3444] | 53 | END SUBROUTINE trc_wri_my_trc |
---|
[7646] | 54 | |
---|
[3444] | 55 | #endif |
---|
| 56 | |
---|
| 57 | END MODULE trcwri_my_trc |
---|