MODULE trclsm_cfc !!====================================================================== !! *** MODULE trclsm_cfc *** !! TOP : initialisation of some run parameters for CFC chemical model !!====================================================================== !! History : 2.0 ! 2007-12 (C. Ethe, G. Madec) from trclsm.cfc.h90 !!---------------------------------------------------------------------- #if defined key_cfc !!---------------------------------------------------------------------- !! 'key_cfc' CFC tracers !!---------------------------------------------------------------------- !! trc_lsm_cfc : CFC model initialisation !!---------------------------------------------------------------------- USE oce_trc ! Ocean variables USE par_trc ! TOP parameters USE trc ! TOP variables USE trcsms_cfc ! CFC specific variable IMPLICIT NONE PRIVATE PUBLIC trc_lsm_cfc ! called by trclsm.F90 module !!---------------------------------------------------------------------- !! NEMO/TOP 2.0 , LOCEAN-IPSL (2007) !! $Id: trclsm_cfc.F90 768 2007-12-16 14:46:18Z gm $ !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) !!---------------------------------------------------------------------- CONTAINS SUBROUTINE trc_lsm_cfc !!------------------------------------------------------------------- !! *** ROUTINE trc_lsm_cfc *** !! !! ** Purpose : Definition some run parameter for CFC model !! !! ** Method : Read the namcfc namelist and check the parameter !! values called at the first timestep (nit000) !! !! ** input : Namelist namcfc !!---------------------------------------------------------------------- CHARACTER (len=32) :: clname = 'namelist.sms.cfc' INTEGER :: numnat !! NAMELIST/namdates/ ndate_beg, nyear_res !!------------------------------------------------------------------- ndate_beg = 300101 ! default namelist value nyear_res = 1950 ! ! Open namelist file CALL ctlopn( numnat, clname, 'OLD', 'FORMATTED', 'SEQUENTIAL', & & 1, numout, .FALSE., 1 ) READ( numnat , namdates ) ! read namelist IF(lwp) THEN ! control print WRITE(numout,*) WRITE(numout,*) ' trc_lsm: Read namdates, namelist for CFC chemical model' WRITE(numout,*) ' ~~~~~~~' WRITE(numout,*) ' initial calendar date (aammjj) for CFC ndate_beg = ', ndate_beg WRITE(numout,*) ' restoring time constant (year) nyear_res = ', nyear_res ENDIF nyear_beg = ndate_beg / 10000 IF(lwp) WRITE(numout,*) ' initial year (aa) nyear_beg = ', nyear_beg ! END SUBROUTINE trc_lsm_cfc #else !!---------------------------------------------------------------------- !! Dummy module : No CFC !!---------------------------------------------------------------------- CONTAINS SUBROUTINE trc_lsm_cfc ! Empty routine END SUBROUTINE trc_lsm_cfc #endif !!====================================================================== END MODULE trclsm_cfc