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

Location:
branches/UKMO/dev_r5518_GO6_package_05sprecip/NEMOGCM/NEMO/OPA_SRC/SBC
Files:
2 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) 
  • branches/UKMO/dev_r5518_GO6_package_05sprecip/NEMOGCM/NEMO/OPA_SRC/SBC/sbcice_cice.F90

    r9281 r9284  
    473473! Snowfall 
    474474! Ensure fsnow is positive (as in CICE routine prepare_forcing) 
     475      IF( iom_use('snowpre') )   CALL iom_put('snowpre',MAX( (1.0-fr_i(:,:))*sprecip(:,:) ,0.0)) !!Joakim edit   
    475476      IF( kt == nit000 .AND. lwp )  THEN 
    476477         WRITE(numout,*) 'sprecip weight, rn_sfac=', rn_sfac 
    477478      ENDIF 
    478  
    479       IF( iom_use('snowpre') )   CALL iom_put('snowpre',MAX( (1.0-fr_i(:,:))*sprecip(:,:) ,0.0)) !!Joakim edit   
    480479      ztmp(:,:)=MAX(fr_i(:,:)*rn_sfac*sprecip(:,:),0.0)   
    481480      CALL nemo2cice(ztmp,fsnow,'T', 1. )  
Note: See TracChangeset for help on using the changeset viewer.