[3295] | 1 | MODULE trcwri_pisces |
---|
| 2 | !!====================================================================== |
---|
| 3 | !! *** MODULE trcwri *** |
---|
| 4 | !! PISCES : Output of PISCES tracers |
---|
| 5 | !!====================================================================== |
---|
| 6 | !! History : 1.0 ! 2009-05 (C. Ethe) Original code |
---|
[6453] | 7 | !! 3.6 ! 2015-05 (O. Aumont) PISCES quota |
---|
[3295] | 8 | !!---------------------------------------------------------------------- |
---|
[6453] | 9 | #if defined key_top && defined key_iomput && ( defined key_pisces || defined key_pisces_reduced || defined key_pisces_quota) |
---|
[3295] | 10 | !!---------------------------------------------------------------------- |
---|
[6453] | 11 | !! 'key_pisces*' PISCES model |
---|
[3295] | 12 | !!---------------------------------------------------------------------- |
---|
| 13 | !! trc_wri_pisces : outputs of concentration fields |
---|
| 14 | !!---------------------------------------------------------------------- |
---|
| 15 | USE trc ! passive tracers common variables |
---|
[3680] | 16 | USE sms_pisces ! PISCES variables |
---|
[3295] | 17 | USE iom ! I/O manager |
---|
| 18 | |
---|
| 19 | IMPLICIT NONE |
---|
| 20 | PRIVATE |
---|
| 21 | |
---|
| 22 | PUBLIC trc_wri_pisces |
---|
| 23 | |
---|
[4292] | 24 | # include "top_substitute.h90" |
---|
[3295] | 25 | CONTAINS |
---|
| 26 | |
---|
| 27 | SUBROUTINE trc_wri_pisces |
---|
| 28 | !!--------------------------------------------------------------------- |
---|
| 29 | !! *** ROUTINE trc_wri_trc *** |
---|
| 30 | !! |
---|
| 31 | !! ** Purpose : output passive tracers fields |
---|
| 32 | !!--------------------------------------------------------------------- |
---|
[6453] | 33 | CHARACTER (len=20) :: cltra |
---|
| 34 | REAL(wp) :: zrfact |
---|
| 35 | INTEGER :: jn |
---|
[3295] | 36 | !!--------------------------------------------------------------------- |
---|
| 37 | |
---|
| 38 | ! write the tracer concentrations in the file |
---|
| 39 | ! --------------------------------------- |
---|
[3680] | 40 | #if defined key_pisces_reduced |
---|
| 41 | DO jn = jp_pcs0, jp_pcs1 |
---|
| 42 | cltra = TRIM( ctrcnm(jn) ) ! short title for tracer |
---|
[6453] | 43 | IF( lk_vvl ) THEN |
---|
| 44 | CALL iom_put( cltra, trn(:,:,:,jn) * fse3t_n(:,:,:) ) |
---|
| 45 | ELSE |
---|
| 46 | CALL iom_put( cltra, trn(:,:,:,jn) ) |
---|
| 47 | ENDIF |
---|
| 48 | CALL iom_put( cltra, trn(:,:,:,jn) * zrfact ) |
---|
[3680] | 49 | END DO |
---|
| 50 | #else |
---|
| 51 | DO jn = jp_pcs0, jp_pcs1 |
---|
[6453] | 52 | zrfact = 1.0e+6 |
---|
| 53 | IF( jn == jpno3 .OR. jn == jpnh4 ) zrfact = rno3 * 1.0e+6 |
---|
| 54 | IF( jn == jppo4 ) zrfact = po4r * 1.0e+6 |
---|
[3295] | 55 | cltra = TRIM( ctrcnm(jn) ) ! short title for tracer |
---|
[6453] | 56 | IF( lk_vvl ) THEN |
---|
| 57 | CALL iom_put( cltra, trn(:,:,:,jn) * fse3t_n(:,:,:) * zrfact ) |
---|
| 58 | ELSE |
---|
| 59 | CALL iom_put( cltra, trn(:,:,:,jn) * zrfact ) |
---|
| 60 | ENDIF |
---|
[3295] | 61 | END DO |
---|
[3680] | 62 | #endif |
---|
[3295] | 63 | ! |
---|
| 64 | END SUBROUTINE trc_wri_pisces |
---|
| 65 | |
---|
| 66 | #else |
---|
| 67 | !!---------------------------------------------------------------------- |
---|
| 68 | !! Dummy module : No passive tracer |
---|
| 69 | !!---------------------------------------------------------------------- |
---|
| 70 | PUBLIC trc_wri_pisces |
---|
| 71 | CONTAINS |
---|
| 72 | SUBROUTINE trc_wri_pisces ! Empty routine |
---|
| 73 | END SUBROUTINE trc_wri_pisces |
---|
| 74 | #endif |
---|
| 75 | |
---|
| 76 | !!---------------------------------------------------------------------- |
---|
| 77 | !! NEMO/TOP 3.3 , NEMO Consortium (2010) |
---|
| 78 | !! $Id: trcwri_pisces.F90 3160 2011-11-20 14:27:18Z cetlod $ |
---|
| 79 | !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
| 80 | !!====================================================================== |
---|
| 81 | END MODULE trcwri_pisces |
---|