[1073] | 1 | MODULE sms_pisces |
---|
| 2 | !!---------------------------------------------------------------------- |
---|
| 3 | !! *** sms_pisces.F90 *** |
---|
| 4 | !! TOP : PISCES Source Minus Sink variables |
---|
| 5 | !!---------------------------------------------------------------------- |
---|
| 6 | !! History : 1.0 ! 2000-02 (O. Aumont) original code |
---|
[1445] | 7 | !! 3.2 ! 2009-04 (C. Ethe & NEMO team) style |
---|
[1073] | 8 | !!---------------------------------------------------------------------- |
---|
| 9 | #if defined key_pisces |
---|
| 10 | !!---------------------------------------------------------------------- |
---|
| 11 | !! 'key_pisces' PISCES model |
---|
| 12 | !!---------------------------------------------------------------------- |
---|
| 13 | USE par_oce |
---|
| 14 | USE par_trc |
---|
| 15 | |
---|
| 16 | IMPLICIT NONE |
---|
| 17 | PUBLIC |
---|
| 18 | |
---|
[3294] | 19 | INTEGER :: numnatp |
---|
| 20 | |
---|
[1445] | 21 | !!* Time variables |
---|
| 22 | INTEGER :: nrdttrc !: ??? |
---|
| 23 | INTEGER :: ndayflxtr !: ??? |
---|
| 24 | REAL(wp) :: rfact , rfactr !: ??? |
---|
| 25 | REAL(wp) :: rfact2, rfact2r !: ??? |
---|
[2528] | 26 | REAL(wp) :: xstep !: Time step duration for biology |
---|
[1073] | 27 | |
---|
[1445] | 28 | !!* Biological parameters |
---|
| 29 | REAL(wp) :: rno3 !: ??? |
---|
| 30 | REAL(wp) :: o2ut !: ??? |
---|
| 31 | REAL(wp) :: po4r !: ??? |
---|
| 32 | REAL(wp) :: rdenit !: ??? |
---|
[3294] | 33 | REAL(wp) :: rdenita !: ??? |
---|
[1445] | 34 | REAL(wp) :: o2nit !: ??? |
---|
| 35 | REAL(wp) :: wsbio, wsbio2 !: ??? |
---|
| 36 | REAL(wp) :: xkmort !: ??? |
---|
| 37 | REAL(wp) :: ferat3 !: ??? |
---|
[1073] | 38 | |
---|
[1445] | 39 | !!* Damping |
---|
| 40 | LOGICAL :: ln_pisdmp !: relaxation or not of nutrients to a mean value |
---|
[3294] | 41 | INTEGER :: nn_pisdmp !: frequency of relaxation or not of nutrients to a mean value |
---|
[1801] | 42 | LOGICAL :: ln_pisclo !: Restoring or not of nutrients to initial value |
---|
| 43 | !: on close seas |
---|
[1073] | 44 | |
---|
[1445] | 45 | !!* Biological fluxes for light |
---|
[2715] | 46 | INTEGER , ALLOCATABLE, SAVE, DIMENSION(:,:) :: neln !: number of T-levels + 1 in the euphotic layer |
---|
| 47 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:) :: heup !: euphotic layer depth |
---|
[1073] | 48 | |
---|
[1445] | 49 | !!* Biological fluxes for primary production |
---|
[2715] | 50 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:) :: xksi !: ??? |
---|
| 51 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:) :: xksimax !: ??? |
---|
| 52 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xnanono3 !: ??? |
---|
| 53 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xdiatno3 !: ??? |
---|
| 54 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xnanonh4 !: ??? |
---|
| 55 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xdiatnh4 !: ??? |
---|
| 56 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xlimphy !: ??? |
---|
| 57 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xlimdia !: ??? |
---|
| 58 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: concdfe !: ??? |
---|
| 59 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: concnfe !: ??? |
---|
[3294] | 60 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xlimnfe !: ??? |
---|
| 61 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xlimdfe !: ??? |
---|
| 62 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xlimsi !: ??? |
---|
[1073] | 63 | |
---|
[3294] | 64 | |
---|
[1445] | 65 | !!* SMS for the organic matter |
---|
[2715] | 66 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xfracal !: ?? |
---|
| 67 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: nitrfac !: ?? |
---|
| 68 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xlimbac !: ?? |
---|
| 69 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xdiss !: ?? |
---|
[3294] | 70 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: prodcal !: Calcite production |
---|
| 71 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: grazing !: Total zooplankton grazing |
---|
[1073] | 72 | |
---|
[1445] | 73 | !!* Variable for chemistry of the CO2 cycle |
---|
[2715] | 74 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: akb3 !: ??? |
---|
| 75 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: ak13 !: ??? |
---|
| 76 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: ak23 !: ??? |
---|
| 77 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: aksp !: ??? |
---|
| 78 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: akw3 !: ??? |
---|
| 79 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: borat !: ??? |
---|
| 80 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: hi !: ??? |
---|
[3294] | 81 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: excess !: ??? |
---|
[1073] | 82 | |
---|
[3294] | 83 | !!* Temperature dependancy of SMS terms |
---|
| 84 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: tgfunc !: Temp. dependancy of various biological rates |
---|
| 85 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: tgfunc2 !: Temp. dependancy of mesozooplankton rates |
---|
| 86 | |
---|
[2715] | 87 | !!* Array used to indicate negative tracer values |
---|
| 88 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xnegtr !: ??? |
---|
| 89 | |
---|
[1073] | 90 | #if defined key_kriest |
---|
[1445] | 91 | !!* Kriest parameter for aggregation |
---|
| 92 | REAL(wp) :: xkr_eta !: ??? |
---|
| 93 | REAL(wp) :: xkr_zeta !: ??? |
---|
| 94 | REAL(wp) :: xkr_massp !: ??? |
---|
| 95 | REAL(wp) :: xkr_mass_min, xkr_mass_max !: ??? |
---|
[1073] | 96 | #endif |
---|
| 97 | |
---|
[2715] | 98 | !!---------------------------------------------------------------------- |
---|
| 99 | !! NEMO/TOP 3.3 , NEMO Consortium (2010) |
---|
| 100 | !! $Id$ |
---|
| 101 | !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
| 102 | !!---------------------------------------------------------------------- |
---|
| 103 | CONTAINS |
---|
| 104 | |
---|
| 105 | INTEGER FUNCTION sms_pisces_alloc() |
---|
| 106 | !!---------------------------------------------------------------------- |
---|
| 107 | !! *** ROUTINE sms_pisces_alloc *** |
---|
| 108 | !!---------------------------------------------------------------------- |
---|
| 109 | USE lib_mpp , ONLY: ctl_warn |
---|
[3294] | 110 | INTEGER :: ierr(6) ! Local variables |
---|
[2715] | 111 | !!---------------------------------------------------------------------- |
---|
| 112 | ierr(:) = 0 |
---|
| 113 | !* Biological fluxes for light |
---|
[3294] | 114 | ALLOCATE( neln(jpi,jpj), heup(jpi,jpj), STAT=ierr(1) ) |
---|
[2715] | 115 | ! |
---|
| 116 | !* Biological fluxes for primary production |
---|
[3294] | 117 | ALLOCATE( xksimax(jpi,jpj) , xksi(jpi,jpj) , & |
---|
| 118 | & xnanono3(jpi,jpj,jpk), xdiatno3(jpi,jpj,jpk), & |
---|
| 119 | & xnanonh4(jpi,jpj,jpk), xdiatnh4(jpi,jpj,jpk), & |
---|
| 120 | & xlimphy (jpi,jpj,jpk), xlimdia (jpi,jpj,jpk), & |
---|
| 121 | & xlimnfe (jpi,jpj,jpk), xlimdfe (jpi,jpj,jpk), & |
---|
| 122 | & xlimsi (jpi,jpj,jpk), concdfe (jpi,jpj,jpk), & |
---|
| 123 | & concnfe (jpi,jpj,jpk), STAT=ierr(2) ) |
---|
[2715] | 124 | ! |
---|
| 125 | !* SMS for the organic matter |
---|
[3294] | 126 | ALLOCATE( xfracal (jpi,jpj,jpk), nitrfac(jpi,jpj,jpk), & |
---|
| 127 | & prodcal(jpi,jpj,jpk) , grazing(jpi,jpj,jpk), & |
---|
| 128 | & xlimbac (jpi,jpj,jpk), xdiss (jpi,jpj,jpk), STAT=ierr(3) ) |
---|
[2715] | 129 | ! |
---|
| 130 | !* Variable for chemistry of the CO2 cycle |
---|
[3294] | 131 | ALLOCATE( akb3(jpi,jpj,jpk) , ak13 (jpi,jpj,jpk) , & |
---|
| 132 | & ak23(jpi,jpj,jpk) , aksp (jpi,jpj,jpk) , & |
---|
| 133 | & akw3(jpi,jpj,jpk) , borat (jpi,jpj,jpk) , & |
---|
| 134 | & hi (jpi,jpj,jpk) , excess(jpi,jpj,jpk) , STAT=ierr(4) ) |
---|
[2715] | 135 | ! |
---|
[3294] | 136 | !* Temperature dependancy of SMS terms |
---|
| 137 | ALLOCATE( tgfunc(jpi,jpj,jpk) , tgfunc2(jpi,jpj,jpk) , STAT=ierr(5) ) |
---|
| 138 | ! |
---|
[2715] | 139 | !* Array used to indicate negative tracer values |
---|
[3294] | 140 | ALLOCATE( xnegtr(jpi,jpj,jpk) , STAT=ierr(6) ) |
---|
[2715] | 141 | ! |
---|
| 142 | sms_pisces_alloc = MAXVAL( ierr ) |
---|
| 143 | ! |
---|
| 144 | IF( sms_pisces_alloc /= 0 ) CALL ctl_warn('sms_pisces_alloc: failed to allocate arrays') |
---|
| 145 | ! |
---|
| 146 | END FUNCTION sms_pisces_alloc |
---|
| 147 | |
---|
[1073] | 148 | #else |
---|
| 149 | !!---------------------------------------------------------------------- |
---|
| 150 | !! Empty module : NO PISCES model |
---|
| 151 | !!---------------------------------------------------------------------- |
---|
| 152 | #endif |
---|
| 153 | |
---|
| 154 | !!====================================================================== |
---|
| 155 | END MODULE sms_pisces |
---|