[1457] | 1 | MODULE trcwri |
---|
[3294] | 2 | !!====================================================================== |
---|
[1457] | 3 | !! *** MODULE trcwri *** |
---|
[1836] | 4 | !! TOP : Output of passive tracers |
---|
[3294] | 5 | !!====================================================================== |
---|
[1836] | 6 | !! History : 1.0 ! 2009-05 (C. Ethe) Original code |
---|
[1457] | 7 | !!---------------------------------------------------------------------- |
---|
[3294] | 8 | #if defined key_top && defined key_iomput |
---|
[1457] | 9 | !!---------------------------------------------------------------------- |
---|
[3294] | 10 | !! 'key_top' TOP models |
---|
[1457] | 11 | !!---------------------------------------------------------------------- |
---|
[1836] | 12 | !! trc_wri_trc : outputs of concentration fields |
---|
[1457] | 13 | !!---------------------------------------------------------------------- |
---|
[3294] | 14 | USE dom_oce ! ocean space and time domain variables |
---|
| 15 | USE oce_trc ! shared variables between ocean and passive tracers |
---|
| 16 | USE trc ! passive tracers common variables |
---|
| 17 | USE iom ! I/O manager |
---|
| 18 | USE dianam ! Output file name |
---|
[3295] | 19 | USE trcwri_pisces |
---|
[3680] | 20 | USE trcwri_cfc |
---|
[7403] | 21 | USE trcwri_c14 |
---|
| 22 | USE trcwri_age |
---|
[3680] | 23 | USE trcwri_my_trc |
---|
[1457] | 24 | |
---|
| 25 | IMPLICIT NONE |
---|
| 26 | PRIVATE |
---|
| 27 | |
---|
| 28 | PUBLIC trc_wri |
---|
| 29 | |
---|
| 30 | CONTAINS |
---|
| 31 | |
---|
[1836] | 32 | SUBROUTINE trc_wri( kt ) |
---|
[1457] | 33 | !!--------------------------------------------------------------------- |
---|
| 34 | !! *** ROUTINE trc_wri *** |
---|
[1836] | 35 | !! |
---|
| 36 | !! ** Purpose : output passive tracers fields and dynamical trends |
---|
| 37 | !!--------------------------------------------------------------------- |
---|
[3750] | 38 | INTEGER, INTENT( in ) :: kt |
---|
[1836] | 39 | ! |
---|
[3294] | 40 | INTEGER :: jn |
---|
| 41 | CHARACTER (len=20) :: cltra |
---|
| 42 | CHARACTER (len=40) :: clhstnam |
---|
[1656] | 43 | INTEGER :: inum = 11 ! temporary logical unit |
---|
[1457] | 44 | !!--------------------------------------------------------------------- |
---|
[3750] | 45 | ! |
---|
| 46 | IF( nn_timing == 1 ) CALL timing_start('trc_wri') |
---|
| 47 | ! |
---|
[7485] | 48 | IF( l_offline .AND. kt == nittrc000 .AND. lwp ) THEN ! WRITE root name in date.file for use by postpro |
---|
[2528] | 49 | CALL dia_nam( clhstnam, nn_writetrc,' ' ) |
---|
| 50 | CALL ctl_opn( inum, 'date.file', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp, narea ) |
---|
| 51 | WRITE(inum,*) clhstnam |
---|
| 52 | CLOSE(inum) |
---|
[1656] | 53 | ENDIF |
---|
[1457] | 54 | ! write the tracer concentrations in the file |
---|
| 55 | ! --------------------------------------- |
---|
[7403] | 56 | IF( ln_pisces ) CALL trc_wri_pisces ! PISCES |
---|
| 57 | IF( ll_cfc ) CALL trc_wri_cfc ! surface fluxes of CFC |
---|
| 58 | IF( ln_c14 ) CALL trc_wri_c14 ! surface fluxes of C14 |
---|
| 59 | IF( ln_age ) CALL trc_wri_age ! AGE tracer |
---|
| 60 | IF( ln_my_trc ) CALL trc_wri_my_trc ! MY_TRC tracers |
---|
[1457] | 61 | ! |
---|
[3750] | 62 | IF( nn_timing == 1 ) CALL timing_stop('trc_wri') |
---|
| 63 | ! |
---|
| 64 | END SUBROUTINE trc_wri |
---|
[1457] | 65 | |
---|
| 66 | #else |
---|
| 67 | !!---------------------------------------------------------------------- |
---|
| 68 | !! Dummy module : No passive tracer |
---|
| 69 | !!---------------------------------------------------------------------- |
---|
| 70 | PUBLIC trc_wri |
---|
| 71 | CONTAINS |
---|
| 72 | SUBROUTINE trc_wri( kt ) ! Empty routine |
---|
| 73 | INTEGER, INTENT(in) :: kt |
---|
| 74 | END SUBROUTINE trc_wri |
---|
| 75 | #endif |
---|
| 76 | |
---|
[2528] | 77 | !!---------------------------------------------------------------------- |
---|
| 78 | !! NEMO/TOP 3.3 , NEMO Consortium (2010) |
---|
| 79 | !! $Id$ |
---|
| 80 | !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
[1457] | 81 | !!====================================================================== |
---|
| 82 | END MODULE trcwri |
---|