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 1702 for trunk – NEMO

Changeset 1702 for trunk


Ignore:
Timestamp:
2009-11-03T13:06:19+01:00 (14 years ago)
Author:
rblod
Message:

Fix a bug in IOF for some configurations, see ticket #375

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/SBC/fldread.F90

    r1628 r1702  
    847847 
    848848         ! create input grid, give it a halo to allow gradient calculations 
    849          ALLOCATE( ref_wgts(nxt_wgt)%fly_dta(ref_wgts(nxt_wgt)%jpiwgt+2, ref_wgts(nxt_wgt)%jpjwgt+2) ) 
    850          IF( ref_wgts(nxt_wgt)%cyclic ) ALLOCATE( ref_wgts(nxt_wgt)%col2(2,ref_wgts(nxt_wgt)%jpjwgt+2) ) 
     849         ! SA: +3 stencil is a patch to avoid out-of-bound computation in some configuration.  
     850         ! a more robust solution will be given in next release 
     851         ALLOCATE( ref_wgts(nxt_wgt)%fly_dta(ref_wgts(nxt_wgt)%jpiwgt+3, ref_wgts(nxt_wgt)%jpjwgt+3) ) 
     852         IF( ref_wgts(nxt_wgt)%cyclic ) ALLOCATE( ref_wgts(nxt_wgt)%col2(2,ref_wgts(nxt_wgt)%jpjwgt+3) ) 
    851853 
    852854         nxt_wgt = nxt_wgt + 1 
Note: See TracChangeset for help on using the changeset viewer.