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 4147 for branches/2013/dev_LOCEAN_2013/NEMOGCM/NEMO/TOP_SRC/PISCES/P4Z/p4zsms.F90 – NEMO

Ignore:
Timestamp:
2013-11-04T12:51:55+01:00 (10 years ago)
Author:
cetlod
Message:

merge in dev_LOCEAN_2013, the 1st development branch dev_r3853_CNRS9_Confsetting, from its starting point ( r3853 ) on the trunk: see ticket #1169

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2013/dev_LOCEAN_2013/NEMOGCM/NEMO/TOP_SRC/PISCES/P4Z/p4zsms.F90

    r3780 r4147  
    145145      CALL p4z_chk_mass( kt ) ! Mass conservation checking 
    146146 
     147      IF ( kt == nittrc000 ) CALL FLUSH    ( numonp )     ! flush output namelist PISCES 
    147148      IF( nn_timing == 1 )  CALL timing_stop('p4z_sms') 
    148149      ! 
     
    166167      NAMELIST/nampisdmp/ ln_pisdmp, nn_pisdmp, ln_pisclo 
    167168      NAMELIST/nampismass/ ln_check_mass 
    168       !!---------------------------------------------------------------------- 
    169  
    170  
    171       REWIND( numnatp ) 
    172       READ  ( numnatp, nampisbio ) 
     169      INTEGER :: ios                 ! Local integer output status for namelist read 
     170      !!---------------------------------------------------------------------- 
     171 
     172      REWIND( numnatp_ref )              ! Namelist nampisbio in reference namelist : Pisces variables 
     173      READ  ( numnatp_ref, nampisbio, IOSTAT = ios, ERR = 901) 
     174901   IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampisbio in reference namelist', lwp ) 
     175 
     176      REWIND( numnatp_cfg )              ! Namelist nampisbio in configuration namelist : Pisces variables 
     177      READ  ( numnatp_cfg, nampisbio, IOSTAT = ios, ERR = 902 ) 
     178902   IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampisbio in configuration namelist', lwp ) 
     179      WRITE ( numonp, nampisbio ) 
    173180 
    174181      IF(lwp) THEN                         ! control print 
     
    187194      !                               ! nampiskrp : kriest parameters 
    188195      !                               ! ----------------------------- 
    189       xkr_eta      = 0.62 
    190       xkr_zeta     = 1.62 
    191       xkr_ncontent = 5.7E-6 
    192       xkr_mass_min = 0.0002 
    193       xkr_mass_max = 1. 
    194  
    195       REWIND( numnatp )                     ! read natkriest 
    196       READ  ( numnatp, nampiskrp ) 
     196      REWIND( numnatp_ref )              ! Namelist nampiskrp in reference namelist : Pisces Kriest 
     197      READ  ( numnatp_ref, nampiskrp, IOSTAT = ios, ERR = 903) 
     198903   IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampiskrp in reference namelist', lwp ) 
     199 
     200      REWIND( numnatp_cfg )              ! Namelist nampiskrp in configuration namelist : Pisces Kriest 
     201      READ  ( numnatp_cfg, nampiskrp, IOSTAT = ios, ERR = 904 ) 
     202904   IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampiskrp in configuration namelist', lwp ) 
     203      WRITE ( numonp, nampiskrp ) 
    197204 
    198205      IF(lwp) THEN 
     
    213220#endif 
    214221 
    215       ln_pisdmp = .true. 
    216       nn_pisdmp = 1 
    217       ln_pisclo = .false. 
    218  
    219       REWIND( numnatp ) 
    220       READ  ( numnatp, nampisdmp ) 
     222      REWIND( numnatp_ref )              ! Namelist nampisdmp in reference namelist : Pisces damping 
     223      READ  ( numnatp_ref, nampisdmp, IOSTAT = ios, ERR = 905) 
     224905   IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampisdmp in reference namelist', lwp ) 
     225 
     226      REWIND( numnatp_cfg )              ! Namelist nampisdmp in configuration namelist : Pisces damping 
     227      READ  ( numnatp_cfg, nampisdmp, IOSTAT = ios, ERR = 906 ) 
     228906   IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampisdmp in configuration namelist', lwp ) 
     229      WRITE ( numonp, nampisdmp ) 
    221230 
    222231      IF(lwp) THEN                         ! control print 
     
    229238      ENDIF 
    230239 
    231       ln_check_mass = .false. 
    232       REWIND( numnatp )        
    233       READ  ( numnatp, nampismass ) 
     240      REWIND( numnatp_ref )              ! Namelist nampismass in reference namelist : Pisces mass conservation check 
     241      READ  ( numnatp_ref, nampismass, IOSTAT = ios, ERR = 907) 
     242907   IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampismass in reference namelist', lwp ) 
     243 
     244      REWIND( numnatp_cfg )              ! Namelist nampismass in configuration namelist : Pisces mass conservation check  
     245      READ  ( numnatp_cfg, nampismass, IOSTAT = ios, ERR = 908 ) 
     246908   IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampismass in configuration namelist', lwp ) 
     247      WRITE ( numonp, nampismass ) 
     248 
    234249      IF(lwp) THEN                         ! control print 
    235250         WRITE(numout,*) ' ' 
Note: See TracChangeset for help on using the changeset viewer.