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/2016/dev_r7012_ROBUST5_CNRS/NEMOGCM/NEMO/TOP_SRC/PISCES – NEMO

source: branches/2016/dev_r7012_ROBUST5_CNRS/NEMOGCM/NEMO/TOP_SRC/PISCES/trcnam_pisces.F90 @ 7068

Last change on this file since 7068 was 7068, checked in by cetlod, 7 years ago

ROBUST5_CNRS : implementation of part I of new TOP interface - 1st step -, see ticket #1782

  • Property svn:keywords set to Id
File size: 3.7 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   !!----------------------------------------------------------------------
11   !! trc_nam_pisces       : PISCES model namelist read
12   !!----------------------------------------------------------------------
13   USE oce_trc         ! Ocean variables
14   USE par_trc         ! TOP parameters
15   USE trc             ! TOP variables
16   USE sms_pisces      ! sms trends
17   USE trdtrc_oce
18   USE iom             ! I/O manager
19
20
21   IMPLICIT NONE
22   PRIVATE
23
24   PUBLIC   trc_nam_pisces   ! called by trcnam.F90 module
25
26
27   !!----------------------------------------------------------------------
28   !! NEMO/TOP 3.3 , NEMO Consortium (2010)
29   !! $Id$
30   !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt)
31   !!----------------------------------------------------------------------
32
33CONTAINS
34
35   SUBROUTINE trc_nam_pisces
36      !!----------------------------------------------------------------------
37      !!                     ***  trc_nam_pisces  *** 
38      !!
39      !! ** Purpose :   read PISCES namelist
40      !!
41      !! ** input   :   file 'namelist.trc.sms' containing the following
42      !!             namelist: natext, natbio, natsms
43      !!----------------------------------------------------------------------
44      !!
45      INTEGER :: jl, jn
46      INTEGER :: ios, ioptio                 ! Local integer output status for namelist read
47      CHARACTER(LEN=20)   ::   clname
48      !!
49      NAMELIST/nampismod/ln_p2z, ln_p4z
50      !!----------------------------------------------------------------------
51
52      IF(lwp) WRITE(numout,*)
53      clname = 'namelist_pisces'
54
55      IF(lwp) WRITE(numout,*) ' trc_nam_pisces : read PISCES namelist'
56      IF(lwp) WRITE(numout,*) ' ~~~~~~~~~~~~~~'
57      CALL ctl_opn( numnatp_ref, TRIM( clname )//'_ref', 'OLD'    , 'FORMATTED', 'SEQUENTIAL', -1, numout, .FALSE. )
58      CALL ctl_opn( numnatp_cfg, TRIM( clname )//'_cfg', 'OLD'    , 'FORMATTED', 'SEQUENTIAL', -1, numout, .FALSE. )
59      IF(lwm) CALL ctl_opn( numonp     , 'output.namelist.pis' , 'UNKNOWN', 'FORMATTED', 'SEQUENTIAL', -1, numout, .FALSE. )
60      !
61
62      REWIND( numnatp_ref )              ! Namelist nampisbio in reference namelist : Pisces variables
63      READ  ( numnatp_ref, nampismod, IOSTAT = ios, ERR = 901)
64901   IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampismod in reference namelist', lwp )
65
66      REWIND( numnatp_cfg )              ! Namelist nampisbio in configuration namelist : Pisces variables
67      READ  ( numnatp_cfg, nampismod, IOSTAT = ios, ERR = 902 )
68902   IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampismod in configuration namelist', lwp )
69      IF(lwm) WRITE ( numonp, nampismod )
70
71      IF(lwp) THEN                         ! control print
72         WRITE(numout,*) ' '
73         IF( ln_p4z )  WRITE(numout,*) '          PISCES  model is used'
74         IF( ln_p2z )  WRITE(numout,*) '          LOBSTER model is used'
75         WRITE(numout,*) ' '
76      ENDIF
77   
78      ioptio = 0
79      IF( ln_p2z )    ioptio = ioptio + 1
80      IF( ln_p4z )    ioptio = ioptio + 1
81      !
82      IF( ioptio /= 1 )   CALL ctl_stop( 'Choose ONE PISCES model namelist nampismod' )
83       !
84   END SUBROUTINE trc_nam_pisces
85
86   !!======================================================================
87END MODULE trcnam_pisces
Note: See TracBrowser for help on using the repository browser.