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 | |
---|
19 | IMPLICIT NONE |
---|
20 | PRIVATE |
---|
21 | |
---|
22 | PUBLIC trc_wri_my_trc |
---|
23 | |
---|
24 | # include "top_substitute.h90" |
---|
25 | CONTAINS |
---|
26 | |
---|
27 | SUBROUTINE trc_wri_my_trc |
---|
28 | !!--------------------------------------------------------------------- |
---|
29 | !! *** ROUTINE trc_wri_trc *** |
---|
30 | !! |
---|
31 | !! ** Purpose : output passive tracers fields |
---|
32 | !!--------------------------------------------------------------------- |
---|
33 | CHARACTER (len=20) :: cltra |
---|
34 | INTEGER :: jn |
---|
35 | !!--------------------------------------------------------------------- |
---|
36 | IF( ln_crs_top ) CALL iom_swap( "nemo_crs" ) |
---|
37 | |
---|
38 | CALL iom_put("ahtt_crs",ahtt_crs) |
---|
39 | CALL iom_put("ahtu_crs",ahtu_crs) |
---|
40 | CALL iom_put("ahtv_crs",ahtv_crs) |
---|
41 | CALL iom_put("ahtw_crs",ahtw_crs) |
---|
42 | |
---|
43 | |
---|
44 | ! write the tracer concentrations in the file |
---|
45 | ! --------------------------------------- |
---|
46 | DO jn = jp_myt0, jp_myt1 |
---|
47 | cltra = TRIM( ctrcnm(jn) ) ! short title for tracer |
---|
48 | IF( lk_vvl ) THEN |
---|
49 | CALL iom_put( TRIM(cltra), trn(:,:,:,jn) * fse3t_n(:,:,:) ) |
---|
50 | ELSE |
---|
51 | CALL iom_put( TRIM(cltra), trn(:,:,:,jn) ) |
---|
52 | ENDIF |
---|
53 | END DO |
---|
54 | ! |
---|
55 | IF( ln_crs_top ) CALL iom_swap( "nemo" ) |
---|
56 | ! |
---|
57 | END SUBROUTINE trc_wri_my_trc |
---|
58 | |
---|
59 | #else |
---|
60 | !!---------------------------------------------------------------------- |
---|
61 | !! Dummy module : No passive tracer |
---|
62 | !!---------------------------------------------------------------------- |
---|
63 | PUBLIC trc_wri_my_trc |
---|
64 | CONTAINS |
---|
65 | SUBROUTINE trc_wri_my_trc ! Empty routine |
---|
66 | END SUBROUTINE trc_wri_my_trc |
---|
67 | #endif |
---|
68 | |
---|
69 | !!---------------------------------------------------------------------- |
---|
70 | !! NEMO/TOP 3.3 , NEMO Consortium (2010) |
---|
71 | !! $Id: trcwri_my_trc.F90 3160 2011-11-20 14:27:18Z cetlod $ |
---|
72 | !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
73 | !!====================================================================== |
---|
74 | END MODULE trcwri_my_trc |
---|