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 7103 – NEMO

Changeset 7103


Ignore:
Timestamp:
2016-10-26T12:52:54+02:00 (7 years ago)
Author:
cetlod
Message:

new top interface : move namelist age from namelist_top to namelist_trc

Location:
branches/2016/dev_r7012_ROBUST5_CNRS/NEMOGCM
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • branches/2016/dev_r7012_ROBUST5_CNRS/NEMOGCM/CONFIG/ORCA2_LIM3_TRC/cpp_ORCA2_LIM3_TRC.fcm

    r7068 r7103  
    1 bld::tool::fppkeys key_trabbl key_lim3 key_zdftke key_zdfddm key_zdftmx key_top key_iomput key_mpp_mpi 
     1bld::tool::fppkeys key_trabbl key_lim3 key_zdftke key_zdfddm key_zdftmx key_top key_iomput key_mpp_mpi key_nosignedzero 
  • branches/2016/dev_r7012_ROBUST5_CNRS/NEMOGCM/CONFIG/SHARED/namelist_top_ref

    r7097 r7103  
    2929! 
    3030   ln_pisces     =  .false.     !  Run PISCES BGC model  
     31   ln_my_trc     =  .false.     !  Run MY_TRC BGC model 
    3132   ln_age        =  .false.     !  Run the sea water age tracer 
    3233   ln_cfc11      =  .false.     !  Run the CFC11 passive tracer 
    3334   ln_cfc12      =  .false.     !  Run the CFC12 passive tracer 
    3435   ln_c14        =  .false.     !  Run the Radiocarbon passive tracer 
    35    ln_my_trc     =  .false.     !  Run MY_TRC BGC model 
    3636! 
    3737   ln_trcdta     =  .false.  !  Initialisation from data input file (T) or not (F) 
     
    4141!                !    name   !           title of the field            !   units    ! initial data from file or not !  
    4242!  sn_tracer(1)  = 'tracer  ' , 'Tracer  Concentration                 ',   ' - '    ,           .false. 
     43/ 
     44!----------------------------------------------------------------------- 
     45&namage         !   AGE  
     46!----------------------------------------------------------------------- 
     47   rn_age_depth      = 10            ! depth over which age tracer reset to zero 
     48   rn_age_kill_rate  = -0.000138888  !  = -1/7200 recip of relaxation timescale (s) for  age tracer shallower than age_depth 
    4349/ 
    4450!----------------------------------------------------------------------- 
  • branches/2016/dev_r7012_ROBUST5_CNRS/NEMOGCM/CONFIG/SHARED/namelist_trc_ref

    r7041 r7103  
    11!!>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    22!! Inert tracers reference namelist  
    3 !!       1  - AGE                (namage) 
    43!!       1  - CFC                (namcfc) 
    54!!       2  - C14               (namc14_typ, namc14_sbc, namc14_fcg) 
    65!>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    7 !''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 
    8 &namage         !   AGE - dates 
    9 !,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 
    10    rn_age_depth      = 10            ! depth over which age tracer reset to zero 
    11    rn_age_kill_rate  = -0.000138888  !  = -1/7200 recip of relaxation timescale (s) for  age tracer shallower than age_depth 
    12 / 
    13 !''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 
     6!----------------------------------------------------------------------- 
    147&namcfc     !   CFC  
    15 !,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 
     8!----------------------------------------------------------------------- 
    169   ndate_beg  = 300101    !  datedeb1 
    1710   nyear_res  = 1932      !  iannee1 
    1811/ 
    1912! 
    20 !''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 
     13!----------------------------------------------------------------------- 
    2114&namc14_typ     !  C14 - type of C14 tracer, default values of C14/C and pco2 
    22 !,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 
     15!----------------------------------------------------------------------- 
    2316   kc14typ  = 0          ! Type of C14 tracer (0=equilibrium; 1=bomb transient; 2=past transient) 
    2417   rc14at   = 1.0        ! Default value for atmospheric C14/C (used for equil run) 
     
    2720/ 
    2821! 
    29 !''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 
     22!----------------------------------------------------------------------- 
    3023&namc14_sbc     !  C14 - surface BC 
    31 !,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 
     24!----------------------------------------------------------------------- 
    3225   ln_chemh = .true.     ! Chemical enhancement in piston vel.: yes/no 
    3326   xkwind   = 0.360      ! Coefficient for gas exchange velocity 
     
    3528/ 
    3629! 
    37 !''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 
     30!----------------------------------------------------------------------- 
    3831&namc14_fcg     !  files & dates 
    3932!               !  For Paleo-historical: specify tyrc14_beg in yr BP 
    4033!               !  For Bomb: tyrc14_beg=0 
    41 !,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 
     34!----------------------------------------------------------------------- 
    4235   cfileco2    = 'splco2.dat'  !  atmospheric co2 - Bomb 
    4336   cfilec14    = 'atmc14.dat'  !  atmospheric c14 - Bomb 
  • branches/2016/dev_r7012_ROBUST5_CNRS/NEMOGCM/NEMO/TOP_SRC/AGE/trcini_age.F90

    r7097 r7103  
    1010   USE oce_trc 
    1111   USE trc 
    12    USE trcnam_age      ! AGE SMS namelist 
    1312   USE trcsms_age 
    1413 
     
    3938      IF(lwp) WRITE(numout,*) ' trc_ini_age: passive tracer age' 
    4039      IF(lwp) WRITE(numout,*) ' ~~~~~~~~~~~~~~' 
     40      IF(lwp) WRITE(numout,*) 
    4141 
    42       CALL trc_nam_age 
     42 
     43      ctrcnm    (jp_age) = 'Age' 
     44      ctrcln    (jp_age) = 'Sea water age since surface contact' 
     45      ctrcun    (jp_age) = 'year' 
     46      ln_trc_ini(jp_age) = .false.  
     47      ! 
     48      ln_trc_sbc(jp_age) = .false. 
     49      ln_trc_cbc(jp_age) = .false. 
     50      ln_trc_obc(jp_age) = .false. 
    4351 
    4452      rryear  = 1._wp / ( nyear_len(1) * rday )    ! recip number of seconds in one year 
  • branches/2016/dev_r7012_ROBUST5_CNRS/NEMOGCM/NEMO/TOP_SRC/AGE/trcnam_age.F90

    r7097 r7103  
    3838      !!---------------------------------------------------------------------- 
    3939 
    40       ctrcnm    (jp_age) = 'Age' 
    41       ctrcln    (jp_age) = 'Sea water age since surface contact' 
    42       ctrcun    (jp_age) = 'year' 
    43       ln_trc_ini(jp_age) = .false.  
    44       ! 
    45       ln_trc_sbc(jp_age) =  '' 
    46       ln_trc_cbc(jp_age) =  '' 
    47       ln_trc_obc(jp_age) =  '' 
    48       ! 
    49  
    50       REWIND( numtrc_ref )              ! Namelist namagedate in reference namelist : AGE parameters 
    51       READ  ( numtrc_ref, namage, IOSTAT = ios, ERR = 901) 
     40      REWIND( numnat_ref )              ! Namelist namagedate in reference namelist : AGE parameters 
     41      READ  ( numnat_ref, namage, IOSTAT = ios, ERR = 901) 
    5242901   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namage in reference namelist', lwp ) 
    5343 
    54       REWIND( numtrc_cfg )              ! Namelist namagedate in configuration namelist : AGE parameters 
    55       READ  ( numtrc_cfg, namage, IOSTAT = ios, ERR = 902 ) 
     44      REWIND( numnat_cfg )              ! Namelist namagedate in configuration namelist : AGE parameters 
     45      READ  ( numnat_cfg, namage, IOSTAT = ios, ERR = 902 ) 
    5646902   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namage in configuration namelist', lwp ) 
    57       IF(lwm) WRITE ( numonr, namage ) 
     47      IF(lwm) WRITE ( numont, namage ) 
    5848 
    5949      IF(lwp) THEN                  ! control print 
    6050         WRITE(numout,*) ' ' 
    6151         WRITE(numout,*) ' Sea Age Tracer' 
    62          WRITE(numout,*) '  tracer nb : ', jp_age, '    short name : ', TRIM( ctrcnm(jp_age) ) 
    6352         WRITE(numout,*) 
    6453         WRITE(numout,*) ' trc_nam_age: Read namage, namelist for Age passive tracer' 
     
    6958      ENDIF 
    7059 
    71       IF(lwm) CALL FLUSH ( numonr )     ! flush output namelist 
    72  
     60      ! 
    7361   END SUBROUTINE trc_nam_age 
    7462    
  • branches/2016/dev_r7012_ROBUST5_CNRS/NEMOGCM/NEMO/TOP_SRC/C14/trcnam_c14.F90

    r7068 r7103  
    6262         WRITE(numout,*) ' ' 
    6363         WRITE(numout,*) ' Radiocarbon C14' 
    64          WRITE(numout,*) '  tracer nb : ', jp_c14, '    short name : ', TRIM( ctrcnm(jp_c14) ) 
    6564         WRITE(numout,*) ' ' 
    6665         WRITE(numout,*) ' Namelist namc14_typ' 
  • branches/2016/dev_r7012_ROBUST5_CNRS/NEMOGCM/NEMO/TOP_SRC/CFC/trcnam_cfc.F90

    r7068 r7103  
    7171         WRITE(numout,*) ' ' 
    7272         WRITE(numout,*) ' CFCs' 
    73          IF( ln_cfc11 )  WRITE(numout,*) '  tracer nb : ', jp_cfc0, '    short name : ', TRIM( ctrcnm(jp_cfc0) ) 
    74          IF( ln_cfc12 )  WRITE(numout,*) '  tracer nb : ', jp_cfc1, '    short name : ', TRIM( ctrcnm(jp_cfc1) ) 
    7573         WRITE(numout,*) ' ' 
    7674         WRITE(numout,*) ' trc_nam: Read namdates, namelist for CFC chemical model' 
  • branches/2016/dev_r7012_ROBUST5_CNRS/NEMOGCM/NEMO/TOP_SRC/trc.F90

    r7097 r7103  
    115115   !! information for inputs 
    116116   !! -------------------------------------------------- 
    117    LOGICAL   , PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:)    ::  ln_trc_ini     !: Initialisation from data input file 
    118    LOGICAL   , PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:)    ::  ln_trc_obc     !: Use open boundary condition data 
    119    LOGICAL   , PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:)    ::  ln_trc_sbc     !: Use surface boundary condition data 
    120    LOGICAL   , PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:)    ::  ln_trc_cbc     !: Use coastal boundary condition data 
     117   LOGICAL , PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:)    ::  ln_trc_ini     !: Initialisation from data input file 
     118   LOGICAL , PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:)    ::  ln_trc_obc     !: Use open boundary condition data 
     119   LOGICAL , PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:)    ::  ln_trc_sbc     !: Use surface boundary condition data 
     120   LOGICAL , PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:)    ::  ln_trc_cbc     !: Use coastal boundary condition data 
    121121 
    122122 
  • branches/2016/dev_r7012_ROBUST5_CNRS/NEMOGCM/NEMO/TOP_SRC/trcini.F90

    r7097 r7103  
    6363      CALL top_alloc()   ! allocate TOP arrays 
    6464      ! 
     65      IF(.NOT.ln_trcdta )   ln_trc_ini(:) = .FALSE. 
    6566      ! 
    6667      IF(lwp) WRITE(numout,*) 
  • branches/2016/dev_r7012_ROBUST5_CNRS/NEMOGCM/NEMO/TOP_SRC/trcnam.F90

    r7097 r7103  
    6464      IF( ln_trcdmp .OR. ln_trcdmp_clo )   ln_trcdta     = .TRUE.   ! damping : need to have clim data 
    6565      ! 
    66       IF( .NOT.ln_trcdta               )   ln_trc_ini(:) = .FALSE. 
    6766 
    6867      IF(lwp) THEN                   ! control print 
     
    230229      ENDIF 
    231230      ! 
    232       IF( ierr /= 0 )   CALL ctl_stop( 'STOP', 'trc_nam_ice: unable to allocate arrays' ) 
    233       ! 
    234       IF( ln_age .OR. ll_cfc .OR. ln_c14 ) THEN 
     231      IF( ln_age )  CALL trc_nam_age 
     232      ! 
     233      IF( ll_cfc .OR. ln_c14 ) THEN 
    235234        !                             ! Open namelist files 
    236235        CALL ctl_opn( numtrc_ref, 'namelist_trc_ref'   ,     'OLD', 'FORMATTED', 'SEQUENTIAL', -1, numout, .FALSE. ) 
Note: See TracChangeset for help on using the changeset viewer.