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.
#375 (NEMO3.1 : fldread and Interpolation on the Fly) – NEMO

Opened 15 years ago

Closed 14 years ago

#375 closed Bug (fixed)

NEMO3.1 : fldread and Interpolation on the Fly

Reported by: molines Owned by: nemo
Priority: high Milestone:
Component: OCE Version: v3.1
Severity: Keywords: IOF
Cc:

Description

Testing interpolation on the fly (IOF) for some special configurations
(ROSS sea, including the south pole)... I found a bug in the allocation of fly_dta array in fldread.F90. This bug causes a crash
later on in the run. It is also the case for a PERIANT8 configuration.

So, I suggest to change the following lines in fldread.F90:

         ALLOCATE( ref_wgts(nxt_wgt)%fly_dta(ref_wgts(nxt_wgt)%jpiwgt+2, ref_wgts(nxt_wgt)%jpjwgt+2) )
         IF( ref_wgts(nxt_wgt)%cyclic ) ALLOCATE( ref_wgts(nxt_wgt)%col2(2,ref_wgts(nxt_wgt)%jpjwgt+2) )

by

         ALLOCATE( ref_wgts(nxt_wgt)%fly_dta(ref_wgts(nxt_wgt)%jpiwgt+2, ref_wgts(nxt_wgt)%jpjwgt+3) )
         IF( ref_wgts(nxt_wgt)%cyclic ) ALLOCATE( ref_wgts(nxt_wgt)%col2(2,ref_wgts(nxt_wgt)%jpjwgt+3) )

The difference is in the +3 instead of +2 in the second dimension.

Jean-Marc

Commit History (1)

ChangesetAuthorTimeChangeLog
1702rblod2009-11-03T13:06:19+01:00

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

Change History (1)

comment:1 Changed 14 years ago by rblod

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.