MODULE trcnam_pisces !!====================================================================== !! *** MODULE trcnam_pisces *** !! TOP : initialisation of some run parameters for PISCES bio-model !!====================================================================== !! History : - ! 1999-10 (M.A. Foujols, M. Levy) original code !! - ! 2000-01 (L. Bopp) hamocc3, p3zd !! 1.0 ! 2003-08 (C. Ethe) module F90 !! 2.0 ! 2007-12 (C. Ethe, G. Madec) from trcnam.pisces.h90 !! 3.6 ! 2015-05 (O. Aumont) PISCES quota !!---------------------------------------------------------------------- #if defined key_pisces || defined key_pisces_reduced || defined key_pisces_quota !!---------------------------------------------------------------------- !! 'key_pisces*' : PISCES bio-model !!---------------------------------------------------------------------- !! trc_nam_pisces : PISCES model namelist read !!---------------------------------------------------------------------- USE oce_trc ! Ocean variables USE par_trc ! TOP parameters USE trc ! TOP variables USE sms_pisces ! sms trends USE trdtrc_oce USE iom ! I/O manager IMPLICIT NONE PRIVATE PUBLIC trc_nam_pisces ! called by trcnam.F90 module !!---------------------------------------------------------------------- !! NEMO/TOP 3.3 , NEMO Consortium (2010) !! $Id$ !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) !!---------------------------------------------------------------------- CONTAINS SUBROUTINE trc_nam_pisces !!---------------------------------------------------------------------- !! *** trc_nam_pisces *** !! !! ** Purpose : read PISCES namelist !! !! ** input : file 'namelist.trc.sms' containing the following !! namelist: natext, natbio, natsms !!---------------------------------------------------------------------- !! INTEGER :: jl, jn INTEGER :: ios ! Local integer output status for namelist read TYPE(DIAG), DIMENSION(jp_pisces_2d) :: pisdia2d TYPE(DIAG), DIMENSION(jp_pisces_3d) :: pisdia3d TYPE(DIAG), DIMENSION(jp_pisces_trd) :: pisdiabio CHARACTER(LEN=20) :: clname !! NAMELIST/nampisdia/ pisdia3d, pisdia2d ! additional diagnostics #if defined key_pisces_reduced NAMELIST/nampisdbi/ pisdiabio #endif !!---------------------------------------------------------------------- IF(lwp) WRITE(numout,*) clname = 'namelist_pisces' #if defined key_pisces IF(lwp) WRITE(numout,*) ' trc_nam_pisces : read PISCES namelist' #elif defined key_pisces_quota IF(lwp) WRITE(numout,*) ' trc_nam_pisces : read PISCES-QUOTA namelist' #else IF(lwp) WRITE(numout,*) ' trc_nam_pisces : read LOBSTER namelist' #endif IF(lwp) WRITE(numout,*) ' ~~~~~~~~~~~~~~' CALL ctl_opn( numnatp_ref, TRIM( clname )//'_ref', 'OLD' , 'FORMATTED', 'SEQUENTIAL', -1, numout, .FALSE. ) CALL ctl_opn( numnatp_cfg, TRIM( clname )//'_cfg', 'OLD' , 'FORMATTED', 'SEQUENTIAL', -1, numout, .FALSE. ) IF(lwm) CALL ctl_opn( numonp , 'output.namelist.pis' , 'UNKNOWN', 'FORMATTED', 'SEQUENTIAL', -1, numout, .FALSE. ) ! END SUBROUTINE trc_nam_pisces #else !!---------------------------------------------------------------------- !! Dummy module : No PISCES bio-model !!---------------------------------------------------------------------- CONTAINS SUBROUTINE trc_nam_pisces ! Empty routine END SUBROUTINE trc_nam_pisces #endif !!====================================================================== END MODULE trcnam_pisces