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 9284 for branches/UKMO/dev_r5518_GO6_package_05sprecip/NEMOGCM/NEMO/OPA_SRC/SBC/sbcblk_core.F90 – NEMO

Ignore:
Timestamp:
2018-01-25T16:27:28+01:00 (6 years ago)
Author:
anaguiar
Message:

Moving default value of rn_sfac to the if statement where reading namsbc_core - or else parameter is wrongly reset each time-step

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r5518_GO6_package_05sprecip/NEMOGCM/NEMO/OPA_SRC/SBC/sbcblk_core.F90

    r9281 r9284  
    155155      !!--------------------------------------------------------------------- 
    156156      ! 
    157       rn_sfac = 1._wp       ! Default to one if missing from namelist  
    158157      !                                         ! ====================== ! 
    159158      IF( kt == nit000 ) THEN                   !  First call kt=nit000  ! 
    160159         !                                      ! ====================== ! 
    161160         ! 
     161         rn_sfac = 1._wp       ! Default to one if missing from namelist  
    162162         REWIND( numnam_ref )              ! Namelist namsbc_core in reference namelist : CORE bulk parameters 
    163163         READ  ( numnam_ref, namsbc_core, IOSTAT = ios, ERR = 901) 
Note: See TracChangeset for help on using the changeset viewer.