[3444] | 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 | !!---------------------------------------------------------------------- |
---|
[5407] | 8 | #if defined key_top && defined key_cfc && defined key_iomput |
---|
[3444] | 9 | !!---------------------------------------------------------------------- |
---|
| 10 | !! 'key_cfc' cfc model |
---|
| 11 | !!---------------------------------------------------------------------- |
---|
| 12 | !! trc_wri_cfc : outputs of concentration fields |
---|
| 13 | !!---------------------------------------------------------------------- |
---|
| 14 | USE trc ! passive tracers common variables |
---|
| 15 | USE iom ! I/O manager |
---|
| 16 | |
---|
| 17 | IMPLICIT NONE |
---|
| 18 | PRIVATE |
---|
| 19 | |
---|
| 20 | PUBLIC trc_wri_cfc |
---|
| 21 | |
---|
[4305] | 22 | # include "top_substitute.h90" |
---|
[3444] | 23 | CONTAINS |
---|
| 24 | |
---|
| 25 | SUBROUTINE trc_wri_cfc |
---|
| 26 | !!--------------------------------------------------------------------- |
---|
| 27 | !! *** ROUTINE trc_wri_trc *** |
---|
| 28 | !! |
---|
| 29 | !! ** Purpose : output passive tracers fields |
---|
| 30 | !!--------------------------------------------------------------------- |
---|
| 31 | CHARACTER (len=20) :: cltra |
---|
| 32 | INTEGER :: jn |
---|
| 33 | !!--------------------------------------------------------------------- |
---|
| 34 | |
---|
| 35 | ! write the tracer concentrations in the file |
---|
| 36 | ! --------------------------------------- |
---|
| 37 | DO jn = jp_cfc0, jp_cfc1 |
---|
| 38 | cltra = TRIM( ctrcnm(jn) ) ! short title for tracer |
---|
[4996] | 39 | CALL iom_put( cltra, trn(:,:,:,jn) ) |
---|
[3444] | 40 | END DO |
---|
| 41 | ! |
---|
| 42 | END SUBROUTINE trc_wri_cfc |
---|
| 43 | |
---|
| 44 | #else |
---|
| 45 | !!---------------------------------------------------------------------- |
---|
| 46 | !! Dummy module : No passive tracer |
---|
| 47 | !!---------------------------------------------------------------------- |
---|
| 48 | PUBLIC trc_wri_cfc |
---|
| 49 | CONTAINS |
---|
| 50 | SUBROUTINE trc_wri_cfc ! Empty routine |
---|
| 51 | END SUBROUTINE trc_wri_cfc |
---|
| 52 | #endif |
---|
| 53 | |
---|
| 54 | !!---------------------------------------------------------------------- |
---|
| 55 | !! NEMO/TOP 3.3 , NEMO Consortium (2010) |
---|
[6427] | 56 | !! $Id$ |
---|
[3444] | 57 | !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
| 58 | !!====================================================================== |
---|
| 59 | END MODULE trcwri_cfc |
---|