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 8353 for branches/2015/nemo_v3_6_STABLE/NEMOGCM/NEMO/TOP_SRC/CFC/trcnam_cfc.F90 – NEMO

Ignore:
Timestamp:
2017-07-19T16:41:00+02:00 (7 years ago)
Author:
lovato
Message:

3.6 stable: update TOP modules and shared configuraton files for CMIP6 (#1925)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/nemo_v3_6_STABLE/NEMOGCM/NEMO/TOP_SRC/CFC/trcnam_cfc.F90

    r4624 r8353  
    4646      INTEGER ::  numonc      = -1   ! Logical unit for output namelist 
    4747      INTEGER :: ios                 ! Local integer output status for namelist read 
    48       INTEGER :: jl, jn 
     48      INTEGER :: jl, jn, cnt 
    4949      TYPE(DIAG), DIMENSION(jp_cfc_2d) :: cfcdia2d 
    5050      !! 
    51       NAMELIST/namcfcdate/ ndate_beg, nyear_res 
     51      NAMELIST/namcfcdate/ ndate_beg, nyear_res, clnamecfc 
    5252      NAMELIST/namcfcdia/  cfcdia2d     ! additional diagnostics 
    5353      !!---------------------------------------------------------------------- 
     
    6666      IF(lwm) WRITE ( numonc, namcfcdate ) 
    6767 
     68      jn = jp_cfc0 - 1 
     69      ! Variables setting 
     70      IF( lp_cfc11 ) THEN 
     71         jn = jn + 1 
     72         ctrcnm    (jn) = 'CFC11' 
     73         ctrcln    (jn) = 'Chlorofluoro carbon 11 Concentration' 
     74         ctrcun    (jn) = 'umolC/L' 
     75         ln_trc_ini(jn) = .false. 
     76         ln_trc_wri(jn) = .true. 
     77      ENDIF 
     78      ! 
     79      IF( lp_cfc12 ) THEN 
     80         jn = jn + 1 
     81         ctrcnm    (jn) = 'CFC12' 
     82         ctrcln    (jn) = 'Chlorofluoro carbon 12 Concentration' 
     83         ctrcun    (jn) = 'umolC/L' 
     84         ln_trc_ini(jn) = .false. 
     85         ln_trc_wri(jn) = .true. 
     86      ENDIF 
     87      ! 
     88      IF( lp_sf6 ) THEN 
     89         jn = jn + 1 
     90         ctrcnm    (jn) = 'SF6' 
     91         ctrcln    (jn) = 'Sulfur hexafluoride Concentration' 
     92         ctrcun    (jn) = 'umol/L' 
     93         ln_trc_ini(jn) = .false. 
     94         ln_trc_wri(jn) = .true. 
     95      ENDIF 
     96 
    6897      IF(lwp) THEN                  ! control print 
    69          WRITE(numout,*) 
     98         WRITE(numout,*) ' ' 
     99         WRITE(numout,*) ' CFCs' 
     100         WRITE(numout,*) ' ' 
    70101         WRITE(numout,*) ' trc_nam: Read namdates, namelist for CFC chemical model' 
    71102         WRITE(numout,*) ' ~~~~~~~' 
    72103         WRITE(numout,*) '    initial calendar date (aammjj) for CFC  ndate_beg = ', ndate_beg 
    73104         WRITE(numout,*) '    restoring time constant (year)          nyear_res = ', nyear_res 
     105         WRITE(numout,*) '    Atmospheric CFC concentrations file     clnamecfc = ', TRIM(clnamecfc) 
     106         WRITE(numout,*) '    Compute dynamics for CFC-11             lp_cfc11  = ', lp_cfc11 
     107         WRITE(numout,*) '    Compute dynamics for CFC-12             lp_cfc12  = ', lp_cfc12 
     108         WRITE(numout,*) '    Compute dynamics for SF6                lp_sf6    = ', lp_sf6 
    74109      ENDIF 
    75110      nyear_beg = ndate_beg / 10000 
    76111      IF(lwp) WRITE(numout,*) '    initial year (aa)                       nyear_beg = ', nyear_beg 
     112      ! 
     113      ! check consistency between CFC namelist and par_cfc setting 
     114      if ( jn - jp_cfc0 + 1 .ne. jp_cfc )  & 
     115      CALL ctl_stop( 'trc_nam_cfc: Number of selected CFCs is different from total CFC number (jp_cfc) specified in par_cfc.F90' ) 
    77116      ! 
    78117 
Note: See TracChangeset for help on using the changeset viewer.