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.
Changeset 336 for trunk/NEMO/TOP_SRC/SMS/trclsm.cfc.h90 – NEMO

Ignore:
Timestamp:
2005-11-14T13:13:26+01:00 (19 years ago)
Author:
opalod
Message:

nemo_v1_update_024 : CE + RB + CT : new evolution of modules

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/TOP_SRC/SMS/trclsm.cfc.h90

    r274 r336  
    1 !!! 
    2 !!!                       trclsm.cfc.h 
    3 !!!                       **************** 
    4 !!! 
    5 !!!  PURPOSE : 
    6 !!!  --------- 
    7 !!!     READs and PRINT options for cfc  namelist 
     1   !!---------------------------------------------------------------------- 
     2   !!                    ***  trclsm.cfc.h90 *** 
     3   !!---------------------------------------------------------------------- 
     4CONTAINS 
    85 
    9 #if defined key_passivetrc && defined key_cfc 
     6   SUBROUTINE trc_lsm 
     7      !!------------------------------------------------------------------- 
     8      !!                  ***  ROUTINE trc_lsm *** 
     9      !!                  
     10      !! ** Purpose :   Definition some run parameter for CFC model 
     11      !! 
     12      !! ** Method  :   Read the namcfc namelist and check the parameter  
     13      !!       values called at the first timestep (nit000) 
     14      !! 
     15      !! ** input   :   Namelist namcfc 
     16      !! 
     17      !! history : 
     18      !!   2.0  !  03-08 (C. Ethe)  Original code 
     19      !!------------------------------------------------------------------- 
    1020 
    11       CHARACTER (len=32) :: clname 
     21      CHARACTER (len=32) ::  & 
     22         clname = 'namelist.sms.cfc' 
     23      INTEGER ::  & 
     24         numnat = 80 
    1225 
     26      NAMELIST/namdates/ndate_beg, nyear_res 
     27      !!------------------------------------------------------------------- 
    1328 
    14 !!--------------------------------------------------------------------- 
    15 !!  TOP 1.0,  LOCEAN-IPSL (2005) 
    16 !! $Header$ 
    17 !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt 
    18 !!--------------------------------------------------------------------- 
    19  
    20 ! 0. initializations 
    21 ! ------------------ 
    22  
    23       NAMELIST/coffset/xinitri 
    24  
    25       numnat=80 
    26       clname ='namelist.sms.cfc' 
    27       OPEN( numnat, FILE= clname, FORM='formatted', STATUS = 'old') 
    28  
    29  
    30 !  Namelist traback : 
    31 !  ------------------ 
    32       READ(numnat,coffset) 
     29      ndate_beg = 300101 
     30      nyear_res = 1950 
    3331 
    3432      IF(lwp) THEN 
    35           WRITE(numout,*) ' ' 
    36           WRITE(numout,*) 'coffset' 
    37           write(numout,coffset) 
    38           WRITE(numout,*) ' ' 
     33         WRITE(numout,*) ' ' 
     34         WRITE(numout,*) ' Namelist for CFC model' 
     35         WRITE(numout,*) ' ***********************' 
     36         WRITE(numout,*) ' ' 
    3937      ENDIF 
    4038 
    41 #endif 
     39      OPEN( UNIT=numnat, FILE=clname, FORM='FORMATTED', STATUS='OLD' ) 
     40      READ( numnat , namdates ) 
    4241 
     42      IF(lwp) THEN 
     43         WRITE(numout,*) 
     44         WRITE(numout,*) ' trc_lsm: Namelist parameter' 
     45         WRITE(numout,*) ' ~~~~~~~~~~~~~~' 
     46         WRITE(numout,*) '  initial calendar date (aammjj) for CFC  ndate_beg = ', ndate_beg 
     47         WRITE(numout,*) '  restoring time constant (year)          nyear_res = ', nyear_res 
     48      ENDIF 
     49      nyear_beg = ndate_beg / 10000 
     50      IF(lwp) THEN 
     51         WRITE(numout,*) '  initial year (aa)                       nyear_beg = ', nyear_beg 
     52         WRITE(numout,*) ' ' 
     53      ENDIF 
    4354 
     55   END SUBROUTINE trc_lsm 
    4456 
    45  
    46  
    47  
    48  
    49  
Note: See TracChangeset for help on using the changeset viewer.