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.
#716 (dimension declarion in obc_oce.F90) – NEMO

Opened 14 years ago

Closed 13 years ago

#716 closed Bug (fixed)

dimension declarion in obc_oce.F90

Reported by: dupontf Owned by: nemo
Priority: low Milestone:
Component: OCE Version: v3.2
Severity: Keywords:
Cc:

Description

In obc_oce.F90, the boundary variables for time-splitting are declared (let's take the example of the eastern boundary) with dimension of jpjed:jpjef (line 89). However the index jj in obcfla runs from 1 to jpj. There are therefore an out-of-bound error. These variables should be declared with jpj dimension.

Same for the other 3 boundaries.

Now variable sshfon_b: dimension declaration is [jpind:jpinf,jpj] but this also generates an out-of-bound error at ji=1. A quick fix is [jpi,jpj]. Maybe one point width would be sufficient for this variables as well... so [jpi] as dimension should suffice, but then obcfla and obcdyn_bt.F90 would need to be corrected for the unused indices.

Same for the southern boundary boundary and for consistency, all 4.

Fred.

Commit History (1)

ChangesetAuthorTimeChangeLog
2166rblod2010-10-06T15:29:14+02:00

Fix various bugs in OBC see ticket #716 #548 #296

Change History (1)

comment:1 Changed 13 years ago by gm

  • Resolution set to fixed
  • Status changed from new to closed

Done on the trunk (v3.2) last October see changeset:2166

Note: See TracTickets for help on using tickets.