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 12255 for NEMO/branches/2019/dev_r11943_MERGE_2019/src/TOP/trcbc.F90 – NEMO

Ignore:
Timestamp:
2019-12-16T13:52:25+01:00 (4 years ago)
Author:
smasson
Message:

rev12240_dev_r11943_MERGE_2019: bugfix in fldread offset in bdy, see #2263. all sette tests ok

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/dev_r11943_MERGE_2019/src/TOP/trcbc.F90

    r12250 r12255  
    367367      IF( PRESENT(jit) ) THEN  
    368368         ! 
    369          ! OPEN boundary conditions (use pt_offset=1. as they are applied at the end of the step) 
     369         ! BDY: use pt_offset=0.5 as applied at the end of the step and fldread is referenced at the middle of the step 
    370370         IF( nb_trcobc > 0 ) THEN 
    371371           if (lwp) write(numout,'(a,i5,a,i10)') '   reading OBC data for ', nb_trcobc ,' variable(s) at step ', kt 
    372            CALL fld_read( kt=kt, kn_fsbc=1, sd=sf_trcobc, kit=jit, pt_offset=1.) 
     372           CALL fld_read( kt=kt, kn_fsbc=1, sd=sf_trcobc, kit=jit, pt_offset = 0.5_wp ) 
    373373         ENDIF 
    374374         ! 
     
    387387      ELSE 
    388388         ! 
    389          ! OPEN boundary conditions (use pt_offset=1. as they are applied at the end of the step) 
     389         ! BDY: use pt_offset=0.5 as applied at the end of the step and fldread is referenced at the middle of the step 
    390390         IF( nb_trcobc > 0 ) THEN 
    391391           if (lwp) write(numout,'(a,i5,a,i10)') '   reading OBC data for ', nb_trcobc ,' variable(s) at step ', kt 
    392            CALL fld_read( kt=kt, kn_fsbc=1, sd=sf_trcobc, pt_offset=1.) 
     392           CALL fld_read( kt=kt, kn_fsbc=1, sd=sf_trcobc, pt_offset = 0.5_wp ) 
    393393         ENDIF 
    394394         ! 
Note: See TracChangeset for help on using the changeset viewer.