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 9169 for branches/2017/dev_merge_2017/NEMOGCM/NEMO/TOP_SRC/C14 – NEMO

Ignore:
Timestamp:
2017-12-26T17:32:56+01:00 (6 years ago)
Author:
gm
Message:

dev_merge_2017: all SRC: finalize the removal of useless warning when reading namelist_cfg + remove all nn_closea + nn_msh replaced by a logical

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_merge_2017/NEMOGCM/NEMO/TOP_SRC/C14/trcnam_c14.F90

    r7124 r9169  
    3737      !! ** input   :   Namelist namelist_c14 
    3838      !!---------------------------------------------------------------------- 
    39       INTEGER :: ios                 ! Local integer output status for namelist read 
     39      INTEGER ::   ios   ! Local integer 
    4040      !!  
    4141      NAMELIST/namc14_typ/ kc14typ,rc14at, pco2at, rc14init   ! type of C14 tracer, default values of C14/C, pco2, & ocean r14 
    4242      NAMELIST/namc14_sbc/ ln_chemh, xkwind, xdicsur          ! chem enh, wind coeff, ref DIC  
    43       NAMELIST/namc14_fcg/ cfileco2, cfilec14, tyrc14_beg  ! for transient exps; atm forcing 
     43      NAMELIST/namc14_fcg/ cfileco2, cfilec14, tyrc14_beg     ! for transient exps; atm forcing 
    4444      !!------------------------------------------------------------------- 
     45      ! 
     46      IF(lwp) THEN 
     47         WRITE(numout,*) ' ' 
     48         WRITE(numout,*) ' Radiocarbon C14' 
     49         WRITE(numout,*) ' ' 
     50         WRITE(numout,*) ' trc_nam_c14 : Read C14 namelists' 
     51         WRITE(numout,*) ' ~~~~~~~~~~~' 
     52      ENDIF 
     53      ! 
    4554      ! Variable setting 
    4655      ctrcnm    (jp_c14) = 'RC14' 
     
    5463      REWIND( numtrc_ref )              ! Namelist namc14_typ in reference namelist : 
    5564      READ  ( numtrc_ref, namc14_typ, IOSTAT = ios, ERR = 901) 
    56 901   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namc14_typ in reference namelist', lwp ) 
    57  
     65901   IF( ios /= 0 )   CALL ctl_nam ( ios , 'namc14_typ in reference namelist', lwp ) 
    5866      REWIND( numtrc_cfg )              ! Namelist namcfcdate in configuration namelist  
    5967      READ  ( numtrc_cfg, namc14_typ, IOSTAT = ios, ERR = 902) 
    60 902   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namc14_typ in configuration namelist', lwp ) 
     68902   IF( ios >  0 )  CALL ctl_nam ( ios , 'namc14_typ in configuration namelist', lwp ) 
    6169      IF(lwm) WRITE ( numonr, namc14_typ ) 
    62  
     70      ! 
    6371      IF(lwp) THEN                  ! control print 
    64          WRITE(numout,*) ' ' 
    65          WRITE(numout,*) ' Radiocarbon C14' 
    66          WRITE(numout,*) ' ' 
    67          WRITE(numout,*) ' Namelist namc14_typ' 
     72         WRITE(numout,*) '   Namelist : namc14_typ' 
     73         WRITE(numout,*) '      Type of C14 tracer (0=equilibrium; 1=bomb transient; 2=past transient) kc14typ = ', kc14typ 
     74         WRITE(numout,*) '      Default value for atmospheric C14/C (used for equil run)               rc14at  = ', rc14at 
     75         WRITE(numout,*) '      Default value for atmospheric pcO2 [atm] (used for equil run)          pco2at  = ', pco2at 
     76         WRITE(numout,*) '      Default value for initial C14/C in the ocean (used for equil run)      rc14init= ', rc14init 
    6877         WRITE(numout,*) 
    69          WRITE(numout,*) ' Type of C14 tracer (0=equilibrium; 1=bomb transient; 2=past transient) kc14typ = ', kc14typ 
    70          WRITE(numout,*) ' Default value for atmospheric C14/C (used for equil run)               rc14at  = ', rc14at 
    71          WRITE(numout,*) ' Default value for atmospheric pcO2 [atm] (used for equil run)          pco2at  = ', pco2at 
    72          WRITE(numout,*) ' Default value for initial C14/C in the ocean (used for equil run)      rc14init= ', rc14init 
    73          WRITE(numout,*) '  ' 
    7478      ENDIF 
    7579 
    7680      REWIND( numtrc_ref )              ! Namelist namc14_typ in reference namelist : 
    7781      READ  ( numtrc_ref, namc14_sbc, IOSTAT = ios, ERR = 903) 
    78 903   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namc14_sbc in reference namelist', lwp ) 
    79  
     82903   IF( ios /= 0 )   CALL ctl_nam ( ios , 'namc14_sbc in reference namelist', lwp ) 
    8083      REWIND( numtrc_cfg )              ! Namelist namcfcdate in configuration namelist  
    8184      READ  ( numtrc_cfg, namc14_sbc, IOSTAT = ios, ERR = 904) 
    82 904   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namc14_sbc in configuration namelist', lwp ) 
    83       IF(lwm) WRITE ( numonr, namc14_sbc ) 
    84  
     85904   IF( ios >  0 )  CALL ctl_nam ( ios , 'namc14_sbc in configuration namelist', lwp ) 
     86      IF(lwm) WRITE( numonr, namc14_sbc ) 
     87      ! 
    8588      IF(lwp) THEN                  ! control print 
    86          WRITE(numout,*) ' Namelist namc14_sbc' 
     89         WRITE(numout,*) '   Namelist namc14_sbc' 
     90         WRITE(numout,*) '      Chemical enhancement in piston velocity   ln_chemh = ', ln_chemh 
     91         WRITE(numout,*) '      Coefficient for gas exchange velocity     xkwind   = ', xkwind 
     92         WRITE(numout,*) '      Reference DIC concentration (mol/m3)      xdicsur  = ', xdicsur 
    8793         WRITE(numout,*) 
    88          WRITE(numout,*) ' Chemical enhancement in piston velocity   ln_chemh = ', ln_chemh 
    89          WRITE(numout,*) ' Coefficient for gas exchange velocity     xkwind   = ', xkwind 
    90          WRITE(numout,*) ' Reference DIC concentration (mol/m3)      xdicsur  = ', xdicsur 
    91          WRITE(numout,*) '  ' 
    9294      ENDIF 
    9395 
    9496      REWIND( numtrc_ref )              ! Namelist namc14_typ in reference namelist : 
    9597      READ  ( numtrc_ref, namc14_fcg, IOSTAT = ios, ERR = 905) 
    96 905   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namc14_fcg in reference namelist', lwp ) 
    97  
     98905   IF( ios /= 0 )   CALL ctl_nam ( ios , 'namc14_fcg in reference namelist', lwp ) 
    9899      REWIND( numtrc_cfg )              ! Namelist namcfcdate in configuration namelist  
    99100      READ  ( numtrc_cfg, namc14_fcg, IOSTAT = ios, ERR = 906) 
    100 906   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namc14_fcg in configuration namelist', lwp ) 
     101906   IF( ios >  0 )  CALL ctl_nam ( ios , 'namc14_fcg in configuration namelist', lwp ) 
    101102      IF(lwm) WRITE ( numonr, namc14_fcg ) 
    102  
     103      ! 
    103104      IF(lwp) THEN                  ! control print 
    104          WRITE(numout,*) ' Namelist namc14_fcg' 
    105          WRITE(numout,*) 
    106          WRITE(numout,*) ' Atmospheric co2 file ( bomb )  cfileco2   = ', TRIM( cfileco2 ) 
    107          WRITE(numout,*) ' Atmospheric c14 file ( bomb )  cfilec14   = ', TRIM( cfilec14 ) 
    108          WRITE(numout,*) ' Starting year of experiment    tyrc14_beg = ', tyrc14_beg 
    109          WRITE(numout,*) '  ' 
     105         WRITE(numout,*) '   Namelist namc14_fcg' 
     106         WRITE(numout,*) '      Atmospheric co2 file ( bomb )           cfileco2   = ', TRIM( cfileco2 ) 
     107         WRITE(numout,*) '      Atmospheric c14 file ( bomb )           cfilec14   = ', TRIM( cfilec14 ) 
     108         WRITE(numout,*) '      Starting year of experiment             tyrc14_beg = ', tyrc14_beg 
    110109      ENDIF 
    111110 
    112111      ! 
    113       IF( kc14typ == 2)    tyrc14_beg = 1950._wp - tyrc14_beg  ! BP to AD dates 
     112      IF( kc14typ == 2 )    tyrc14_beg = 1950._wp - tyrc14_beg   ! BP to AD dates 
    114113      ! set units  
    115114      rlam14 = LOG(2._wp) / 5730._wp / rsiyea    ! C14 decay  rate: yr^-1 --> s^-1 
Note: See TracChangeset for help on using the changeset viewer.