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 | !!---------------------------------------------------------------------- |
---|
8 | #if defined key_top && defined key_my_trc && defined key_iomput |
---|
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 |
---|
15 | USE oce_trc |
---|
16 | USE crs, ONLY : ln_crs,ln_crs_top,ahtt_crs,ahtu_crs,ahtv_crs,ahtw_crs,jpi_crs,jpj_crs |
---|
17 | USE iom, ONLY : iom_swap, iom_put |
---|
18 | USE ieee_arithmetic |
---|
19 | |
---|
20 | IMPLICIT NONE |
---|
21 | PRIVATE |
---|
22 | |
---|
23 | PUBLIC trc_wri_my_trc |
---|
24 | |
---|
25 | # include "top_substitute.h90" |
---|
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 | !!--------------------------------------------------------------------- |
---|
37 | IF( ln_crs_top ) CALL iom_swap( "nemo_crs" ) |
---|
38 | |
---|
39 | ! write the tracer concentrations in the file |
---|
40 | ! --------------------------------------- |
---|
41 | WHERE(ieee_is_nan(trn))trn=1.e30 |
---|
42 | DO jn = jp_myt0, jp_myt1 |
---|
43 | cltra = TRIM( ctrcnm(jn) ) ! short title for tracer |
---|
44 | CALL iom_put( TRIM(cltra), trn(:,:,:,jn) ) |
---|
45 | ENDIF |
---|
46 | END DO |
---|
47 | ! |
---|
48 | IF( ln_crs_top ) CALL iom_swap( "nemo" ) |
---|
49 | ! |
---|
50 | END SUBROUTINE trc_wri_my_trc |
---|
51 | |
---|
52 | #else |
---|
53 | !!---------------------------------------------------------------------- |
---|
54 | !! Dummy module : No passive tracer |
---|
55 | !!---------------------------------------------------------------------- |
---|
56 | PUBLIC trc_wri_my_trc |
---|
57 | CONTAINS |
---|
58 | SUBROUTINE trc_wri_my_trc ! Empty routine |
---|
59 | END SUBROUTINE trc_wri_my_trc |
---|
60 | #endif |
---|
61 | |
---|
62 | !!---------------------------------------------------------------------- |
---|
63 | !! NEMO/TOP 3.3 , NEMO Consortium (2010) |
---|
64 | !! $Id: trcwri_my_trc.F90 3160 2011-11-20 14:27:18Z cetlod $ |
---|
65 | !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
66 | !!====================================================================== |
---|
67 | END MODULE trcwri_my_trc |
---|