[3444] | 1 | MODULE trcwri_my_trc |
---|
| 2 | !!====================================================================== |
---|
| 3 | !! *** MODULE trcwri *** |
---|
| 4 | !! my_trc : Output of my_trc tracers |
---|
| 5 | !!====================================================================== |
---|
| 6 | !! History : 1.0 ! 2009-05 (C. Ethe) Original code |
---|
| 7 | !!---------------------------------------------------------------------- |
---|
[5602] | 8 | #if defined key_top && defined key_my_trc && defined key_iomput |
---|
[3444] | 9 | !!---------------------------------------------------------------------- |
---|
| 10 | !! 'key_my_trc' my_trc model |
---|
| 11 | !!---------------------------------------------------------------------- |
---|
| 12 | !! trc_wri_my_trc : outputs of concentration fields |
---|
| 13 | !!---------------------------------------------------------------------- |
---|
| 14 | USE trc ! passive tracers common variables |
---|
[5105] | 15 | USE oce_trc |
---|
[7217] | 16 | USE crs, ONLY : ln_crs_top !cbr ????,ahtt_crs,ahtu_crs,ahtv_crs,ahtw_crs,jpi_crs,jpj_crs |
---|
[5601] | 17 | USE iom, ONLY : iom_swap, iom_put |
---|
[6772] | 18 | USE ieee_arithmetic |
---|
[3444] | 19 | |
---|
| 20 | IMPLICIT NONE |
---|
| 21 | PRIVATE |
---|
| 22 | |
---|
| 23 | PUBLIC trc_wri_my_trc |
---|
| 24 | |
---|
[4305] | 25 | # include "top_substitute.h90" |
---|
[3444] | 26 | CONTAINS |
---|
| 27 | |
---|
| 28 | SUBROUTINE trc_wri_my_trc |
---|
| 29 | !!--------------------------------------------------------------------- |
---|
| 30 | !! *** ROUTINE trc_wri_trc *** |
---|
| 31 | !! |
---|
| 32 | !! ** Purpose : output passive tracers fields |
---|
| 33 | !!--------------------------------------------------------------------- |
---|
| 34 | CHARACTER (len=20) :: cltra |
---|
| 35 | INTEGER :: jn |
---|
| 36 | !!--------------------------------------------------------------------- |
---|
[5601] | 37 | IF( ln_crs_top ) CALL iom_swap( "nemo_crs" ) |
---|
| 38 | |
---|
[3444] | 39 | ! write the tracer concentrations in the file |
---|
| 40 | ! --------------------------------------- |
---|
[6772] | 41 | WHERE(ieee_is_nan(trn))trn=1.e30 |
---|
[3444] | 42 | DO jn = jp_myt0, jp_myt1 |
---|
| 43 | cltra = TRIM( ctrcnm(jn) ) ! short title for tracer |
---|
[6772] | 44 | CALL iom_put( TRIM(cltra), trn(:,:,:,jn) ) |
---|
[3444] | 45 | END DO |
---|
| 46 | ! |
---|
[5601] | 47 | IF( ln_crs_top ) CALL iom_swap( "nemo" ) |
---|
[5105] | 48 | ! |
---|
[3444] | 49 | END SUBROUTINE trc_wri_my_trc |
---|
| 50 | |
---|
| 51 | #else |
---|
| 52 | !!---------------------------------------------------------------------- |
---|
| 53 | !! Dummy module : No passive tracer |
---|
| 54 | !!---------------------------------------------------------------------- |
---|
| 55 | PUBLIC trc_wri_my_trc |
---|
| 56 | CONTAINS |
---|
| 57 | SUBROUTINE trc_wri_my_trc ! Empty routine |
---|
| 58 | END SUBROUTINE trc_wri_my_trc |
---|
| 59 | #endif |
---|
| 60 | |
---|
| 61 | !!---------------------------------------------------------------------- |
---|
| 62 | !! NEMO/TOP 3.3 , NEMO Consortium (2010) |
---|
[10207] | 63 | !! $Id$ |
---|
[3444] | 64 | !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
| 65 | !!====================================================================== |
---|
| 66 | END MODULE trcwri_my_trc |
---|