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.
trcnam_pisces.F90 in branches/CNRS/dev_r6270_PISCES_QUOTA/NEMOGCM/NEMO/TOP_SRC/PISCES – NEMO

source: branches/CNRS/dev_r6270_PISCES_QUOTA/NEMOGCM/NEMO/TOP_SRC/PISCES/trcnam_pisces.F90 @ 8003

Last change on this file since 8003 was 8003, checked in by aumont, 7 years ago

modification in the code to remove unnecessary parts such as kriest and non iomput options

  • Property svn:keywords set to Id
File size: 3.9 KB
Line 
1MODULE trcnam_pisces
2   !!======================================================================
3   !!                      ***  MODULE trcnam_pisces  ***
4   !! TOP :   initialisation of some run parameters for PISCES bio-model
5   !!======================================================================
6   !! History :    -   !  1999-10 (M.A. Foujols, M. Levy) original code
7   !!              -   !  2000-01 (L. Bopp) hamocc3, p3zd
8   !!             1.0  !  2003-08 (C. Ethe)  module F90
9   !!             2.0  !  2007-12  (C. Ethe, G. Madec) from trcnam.pisces.h90
10   !!             3.6  !  2015-05  (O. Aumont) PISCES quota
11   !!----------------------------------------------------------------------
12#if defined key_pisces || defined key_pisces_reduced || defined key_pisces_quota
13   !!----------------------------------------------------------------------
14   !!   'key_pisces*'  :                                   PISCES bio-model
15   !!----------------------------------------------------------------------
16   !! trc_nam_pisces       : PISCES model namelist read
17   !!----------------------------------------------------------------------
18   USE oce_trc         ! Ocean variables
19   USE par_trc         ! TOP parameters
20   USE trc             ! TOP variables
21   USE sms_pisces      ! sms trends
22   USE trdtrc_oce
23   USE iom             ! I/O manager
24
25
26   IMPLICIT NONE
27   PRIVATE
28
29   PUBLIC   trc_nam_pisces   ! called by trcnam.F90 module
30
31
32   !!----------------------------------------------------------------------
33   !! NEMO/TOP 3.3 , NEMO Consortium (2010)
34   !! $Id$
35   !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt)
36   !!----------------------------------------------------------------------
37
38CONTAINS
39
40   SUBROUTINE trc_nam_pisces
41      !!----------------------------------------------------------------------
42      !!                     ***  trc_nam_pisces  *** 
43      !!
44      !! ** Purpose :   read PISCES namelist
45      !!
46      !! ** input   :   file 'namelist.trc.sms' containing the following
47      !!             namelist: natext, natbio, natsms
48      !!----------------------------------------------------------------------
49      !!
50      INTEGER :: jl, jn
51      INTEGER :: ios                 ! Local integer output status for namelist read
52      TYPE(DIAG), DIMENSION(jp_pisces_2d)  :: pisdia2d
53      TYPE(DIAG), DIMENSION(jp_pisces_3d)  :: pisdia3d
54      TYPE(DIAG), DIMENSION(jp_pisces_trd) :: pisdiabio
55      CHARACTER(LEN=20)   ::   clname
56      !!
57      NAMELIST/nampisdia/ pisdia3d, pisdia2d     ! additional diagnostics
58#if defined key_pisces_reduced
59      NAMELIST/nampisdbi/ pisdiabio
60#endif
61
62      !!----------------------------------------------------------------------
63
64      IF(lwp) WRITE(numout,*)
65      clname = 'namelist_pisces'
66#if defined key_pisces
67      IF(lwp) WRITE(numout,*) ' trc_nam_pisces : read PISCES namelist'
68#elif defined key_pisces_quota
69      IF(lwp) WRITE(numout,*) ' trc_nam_pisces : read PISCES-QUOTA namelist'
70#else
71      IF(lwp) WRITE(numout,*) ' trc_nam_pisces : read LOBSTER namelist'
72#endif
73      IF(lwp) WRITE(numout,*) ' ~~~~~~~~~~~~~~'
74      CALL ctl_opn( numnatp_ref, TRIM( clname )//'_ref', 'OLD'    , 'FORMATTED', 'SEQUENTIAL', -1, numout, .FALSE. )
75      CALL ctl_opn( numnatp_cfg, TRIM( clname )//'_cfg', 'OLD'    , 'FORMATTED', 'SEQUENTIAL', -1, numout, .FALSE. )
76      IF(lwm) CALL ctl_opn( numonp     , 'output.namelist.pis' , 'UNKNOWN', 'FORMATTED', 'SEQUENTIAL', -1, numout, .FALSE. )
77      !
78   END SUBROUTINE trc_nam_pisces
79
80#else
81   !!----------------------------------------------------------------------
82   !!  Dummy module :                                   No PISCES bio-model
83   !!----------------------------------------------------------------------
84CONTAINS
85   SUBROUTINE trc_nam_pisces                      ! Empty routine
86   END  SUBROUTINE  trc_nam_pisces
87#endif 
88
89   !!======================================================================
90END MODULE trcnam_pisces
Note: See TracBrowser for help on using the repository browser.