New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
trcsms_pisces.F90 in trunk/NEMO/TOP_SRC/PISCES – NEMO

source: trunk/NEMO/TOP_SRC/PISCES/trcsms_pisces.F90 @ 1119

Last change on this file since 1119 was 1119, checked in by cetlod, 16 years ago

style of all top namelist has been modified ; update modules to take it into account, see ticket:196

  • Property svn:executable set to *
File size: 3.6 KB
Line 
1MODULE trcsms_pisces
2   !!======================================================================
3   !!                         ***  MODULE trcsms_pisces  ***
4   !! TOP :   PISCES Source Minus Sink manager
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   !!   trcsms_pisces        :  Time loop of passive tracers sms
14   !!----------------------------------------------------------------------
15   USE oce_trc         !
16   USE trc
17   USE sms_pisces
18   USE lbclnk
19   USE lib_mpp
20   
21   USE p4zint          !
22   USE p4zche          !
23   USE p4zbio          !
24   USE p4zsed          !
25   USE p4zlys          !
26   USE p4zflx          !
27
28   IMPLICIT NONE
29   PRIVATE
30
31   PUBLIC   trc_sms_pisces    ! called in trcsms.F90
32
33   !!----------------------------------------------------------------------
34   !! NEMO/TOP 2.0 , LOCEAN-IPSL (2007)
35   !! $Header:$
36   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt)
37   !!----------------------------------------------------------------------
38
39CONTAINS
40
41   SUBROUTINE trc_sms_pisces( kt )
42      !!---------------------------------------------------------------------
43      !!                     ***  ROUTINE trc_sms_pisces  ***
44      !!
45      !! ** Purpose :   Managment of the call to Biological sources and sinks
46      !!              routines of PISCES bio-model
47      !!
48      !! ** Method  : - at each new day ...
49      !!              - several calls of bio and sed ???
50      !!              - ...
51      !!---------------------------------------------------------------------
52      INTEGER, INTENT( in ) ::   kt      ! ocean time-step index     
53      !!
54      INTEGER ::   jnt, jn
55      !!---------------------------------------------------------------------
56
57      IF( ndayflxtr /= nday ) THEN      ! New days
58         !
59         ndayflxtr = nday
60
61         CALL p4z_che          ! computation of chemical constants
62
63         CALL p4z_int          ! computation of various rates for biogeochemistry
64         !
65      ENDIF
66
67
68      DO jnt = 1, nrdttrc          ! Potential time splitting if requested
69         !
70         CALL p4z_bio (kt, jnt)    ! Compute soft tissue production (POC)
71
72
73         CALL p4z_sed (kt, jnt)    ! compute soft tissue remineralisation
74
75         !
76         trb(:,:,:,:) = trn(:,:,:,:)
77         !
78      END DO
79
80      CALL p4z_lys( kt )             ! Compute CaCO3 saturation
81
82      CALL p4z_flx( kt )             ! Compute surface fluxes
83
84
85      DO jn = jp_pcs0, jp_pcs1
86        CALL lbc_lnk( trn(:,:,:,jn), 'T', 1. )
87        CALL lbc_lnk( trb(:,:,:,jn), 'T', 1. )
88        CALL lbc_lnk( tra(:,:,:,jn), 'T', 1. )
89      END DO
90      !
91   END SUBROUTINE trc_sms_pisces
92
93#else
94   !!======================================================================
95   !!  Dummy module :                                   No PISCES bio-model
96   !!======================================================================
97CONTAINS
98   SUBROUTINE trc_sms_pisces( kt )                   ! Empty routine
99      INTEGER, INTENT( in ) ::   kt
100      WRITE(*,*) 'trc_sms_pisces: You should not have seen this print! error?', kt
101   END SUBROUTINE trc_sms_pisces
102#endif 
103
104   !!======================================================================
105END MODULE trcsms_pisces 
Note: See TracBrowser for help on using the repository browser.