[935] | 1 | MODULE p4zint |
---|
| 2 | !!====================================================================== |
---|
| 3 | !! *** MODULE p4zint *** |
---|
| 4 | !! TOP : PISCES interpolation and computation of various accessory fields |
---|
| 5 | !!====================================================================== |
---|
| 6 | !! History : 1.0 ! 2004-03 (O. Aumont) Original code |
---|
| 7 | !! 2.0 ! 2007-12 (C. Ethe, G. Madec) F90 |
---|
| 8 | !!---------------------------------------------------------------------- |
---|
| 9 | #if defined key_pisces |
---|
| 10 | !!---------------------------------------------------------------------- |
---|
| 11 | !! 'key_pisces' PISCES bio-model |
---|
| 12 | !!---------------------------------------------------------------------- |
---|
| 13 | !! p4z_int : interpolation and computation of various accessory fields |
---|
| 14 | !!---------------------------------------------------------------------- |
---|
[1715] | 15 | USE dom_oce ! ocean space and time domain variables |
---|
[935] | 16 | USE oce_trc ! |
---|
[1119] | 17 | USE trc |
---|
[1073] | 18 | USE sms_pisces |
---|
[935] | 19 | |
---|
| 20 | IMPLICIT NONE |
---|
| 21 | PRIVATE |
---|
| 22 | |
---|
[1073] | 23 | PUBLIC p4z_int |
---|
[935] | 24 | |
---|
| 25 | REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpk) :: & !: |
---|
[1352] | 26 | tgfunc, & !: Temp. dependancy of various biological rates |
---|
| 27 | tgfunc2 !: Temp. dependancy of mesozooplankton rates |
---|
[935] | 28 | |
---|
| 29 | !! * Module variables |
---|
| 30 | REAL(wp) :: & |
---|
| 31 | xksilim = 16.5E-6 ! Half-saturation constant for the computation of the Si half-saturation constant |
---|
| 32 | |
---|
| 33 | |
---|
| 34 | !!---------------------------------------------------------------------- |
---|
| 35 | !! NEMO/TOP 2.0 , LOCEAN-IPSL (2007) |
---|
[1152] | 36 | !! $Id$ |
---|
[935] | 37 | !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) |
---|
| 38 | !!---------------------------------------------------------------------- |
---|
| 39 | |
---|
| 40 | CONTAINS |
---|
| 41 | |
---|
| 42 | SUBROUTINE p4z_int |
---|
| 43 | !!--------------------------------------------------------------------- |
---|
| 44 | !! *** ROUTINE p4z_int *** |
---|
| 45 | !! |
---|
| 46 | !! ** Purpose : interpolation and computation of various accessory fields |
---|
| 47 | !! |
---|
| 48 | !! ** Method : - ??? |
---|
| 49 | !!--------------------------------------------------------------------- |
---|
| 50 | !! |
---|
| 51 | INTEGER :: ji, jj |
---|
| 52 | REAL(wp) :: zdum |
---|
| 53 | !!--------------------------------------------------------------------- |
---|
| 54 | |
---|
| 55 | ! Computation of phyto and zoo metabolic rate |
---|
| 56 | ! ------------------------------------------- |
---|
| 57 | |
---|
[1352] | 58 | tgfunc (:,:,:) = EXP( 0.063913 * tn(:,:,:) ) |
---|
| 59 | tgfunc2(:,:,:) = EXP( 0.07608 * tn(:,:,:) ) |
---|
[935] | 60 | |
---|
| 61 | ! Computation of the silicon dependant half saturation |
---|
| 62 | ! constant for silica uptake |
---|
| 63 | ! --------------------------------------------------- |
---|
| 64 | |
---|
| 65 | DO ji = 1, jpi |
---|
| 66 | DO jj = 1, jpj |
---|
| 67 | zdum = trn(ji,jj,1,jpsil) * trn(ji,jj,1,jpsil) |
---|
| 68 | xksimax(ji,jj) = MAX( xksimax(ji,jj), ( 1.+ 7.* zdum / ( xksilim * xksilim + zdum ) ) * 1e-6 ) |
---|
| 69 | END DO |
---|
| 70 | END DO |
---|
| 71 | |
---|
| 72 | IF( nday_year == 365 ) THEN |
---|
| 73 | xksi = xksimax |
---|
| 74 | xksimax = 0.e0 |
---|
| 75 | ENDIF |
---|
| 76 | ! |
---|
| 77 | END SUBROUTINE p4z_int |
---|
| 78 | |
---|
| 79 | #else |
---|
| 80 | !!====================================================================== |
---|
| 81 | !! Dummy module : No PISCES bio-model |
---|
| 82 | !!====================================================================== |
---|
| 83 | CONTAINS |
---|
| 84 | SUBROUTINE p4z_int ! Empty routine |
---|
| 85 | WRITE(*,*) 'p4z_int: You should not have seen this print! error?' |
---|
| 86 | END SUBROUTINE p4z_int |
---|
| 87 | #endif |
---|
| 88 | |
---|
| 89 | !!====================================================================== |
---|
| 90 | END MODULE p4zint |
---|