[3443] | 1 | MODULE p2zsms |
---|
| 2 | !!====================================================================== |
---|
| 3 | !! *** MODULE p2zsms *** |
---|
| 4 | !! TOP : Time loop of LOBSTER model |
---|
| 5 | !!====================================================================== |
---|
| 6 | !! History : 1.0 ! M. Levy |
---|
| 7 | !! 2.0 ! 2007-12 (C. Ethe, G. Madec) revised architecture |
---|
| 8 | !!---------------------------------------------------------------------- |
---|
| 9 | #if defined key_pisces_reduced |
---|
| 10 | !!---------------------------------------------------------------------- |
---|
| 11 | !! 'key_pisces_reduced' LOBSTER bio-model |
---|
| 12 | !!---------------------------------------------------------------------- |
---|
| 13 | !! p2zsms : Time loop of passive tracers sms |
---|
| 14 | !!---------------------------------------------------------------------- |
---|
| 15 | USE oce_trc ! |
---|
| 16 | USE trc |
---|
[4147] | 17 | USE sms_pisces |
---|
[3443] | 18 | USE p2zbio |
---|
| 19 | USE p2zopt |
---|
| 20 | USE p2zsed |
---|
| 21 | USE p2zexp |
---|
[4990] | 22 | USE trd_oce |
---|
| 23 | USE trdtrc_oce |
---|
| 24 | USE trdtrc |
---|
| 25 | USE trdmxl_trc |
---|
[3443] | 26 | |
---|
| 27 | IMPLICIT NONE |
---|
| 28 | PRIVATE |
---|
| 29 | |
---|
| 30 | PUBLIC p2z_sms ! called in p2zsms.F90 |
---|
| 31 | |
---|
| 32 | !!---------------------------------------------------------------------- |
---|
| 33 | !! NEMO/TOP 3.3 , NEMO Consortium (2010) |
---|
[6836] | 34 | !! $Id$ |
---|
[3443] | 35 | !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
| 36 | !!---------------------------------------------------------------------- |
---|
| 37 | CONTAINS |
---|
| 38 | |
---|
| 39 | SUBROUTINE p2z_sms( kt ) |
---|
| 40 | !!--------------------------------------------------------------------- |
---|
| 41 | !! *** ROUTINE p2z_sms *** |
---|
| 42 | !! |
---|
| 43 | !! ** Purpose : Managment of the call to Biological sources and sinks |
---|
| 44 | !! routines of LOBSTER bio-model |
---|
| 45 | !! |
---|
| 46 | !! ** Method : - ??? |
---|
| 47 | !! -------------------------------------------------------------------- |
---|
| 48 | !! |
---|
| 49 | INTEGER, INTENT( in ) :: kt ! ocean time-step index |
---|
| 50 | ! |
---|
| 51 | INTEGER :: jn |
---|
| 52 | !! -------------------------------------------------------------------- |
---|
| 53 | ! |
---|
| 54 | IF( nn_timing == 1 ) CALL timing_start('p2z_sms') |
---|
| 55 | ! |
---|
| 56 | CALL p2z_opt( kt ) ! optical model |
---|
| 57 | CALL p2z_bio( kt ) ! biological model |
---|
| 58 | CALL p2z_sed( kt ) ! sedimentation model |
---|
| 59 | CALL p2z_exp( kt ) ! export |
---|
| 60 | |
---|
| 61 | IF( l_trdtrc ) THEN |
---|
| 62 | DO jn = jp_pcs0, jp_pcs1 |
---|
[4990] | 63 | CALL trd_trc( tra(:,:,:,jn), jn, jptra_sms, kt ) ! save trends |
---|
[3443] | 64 | END DO |
---|
| 65 | END IF |
---|
| 66 | |
---|
[4990] | 67 | IF( lk_trdmxl_trc ) CALL trd_mxl_bio( kt ) ! trends: Mixed-layer |
---|
[3443] | 68 | ! |
---|
[4624] | 69 | IF ( lwm .AND. kt == nittrc000 ) CALL FLUSH ( numonp ) ! flush output namelist PISCES |
---|
[3443] | 70 | IF( nn_timing == 1 ) CALL timing_stop('p2z_sms') |
---|
| 71 | ! |
---|
| 72 | END SUBROUTINE p2z_sms |
---|
| 73 | |
---|
| 74 | #else |
---|
| 75 | !!====================================================================== |
---|
| 76 | !! Dummy module : No passive tracer |
---|
| 77 | !!====================================================================== |
---|
| 78 | CONTAINS |
---|
| 79 | SUBROUTINE p2z_sms( kt ) ! Empty routine |
---|
| 80 | INTEGER, INTENT( in ) :: kt |
---|
| 81 | WRITE(*,*) 'p2z_sms: You should not have seen this print! error?', kt |
---|
| 82 | END SUBROUTINE p2z_sms |
---|
| 83 | #endif |
---|
| 84 | |
---|
| 85 | !!====================================================================== |
---|
[6839] | 86 | END MODULE p2zsms |
---|