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.
#1250 (Array bound warnings in prt_ctl_init when jpnij /= jpni*jpnj) – NEMO

Opened 10 years ago

Closed 10 years ago

#1250 closed Bug (fixed)

Array bound warnings in prt_ctl_init when jpnij /= jpni*jpnj

Reported by: acc Owned by: nemo
Priority: low Milestone: Unscheduled
Component: OCE Version: v3.6
Severity: Keywords:
Cc:

Description

prt_ctl_init contains assignments such as:

nlditl(:) = nldit(:)

which generate compiler warnings on some systems when land only regions are being discarded (i.e. jpnij /= jpni*jpnj). This occurs because the left hand side arrays are allocated in nemogcm.F90 before the mppini calls and are declared as jpni*jpnj; the right hand side arrays are decalred in dom_oce after the mppini call as jpnij. The mismatch causes run-time warning messages with some compilers which can be avoided by using assignments such as:

nlditl(1:jpnij) = nldit(:)

in all cases. The same changes are also needed in TOP_SRC/prtctl_trc.F90.

Commit History (1)

ChangesetAuthorTimeChangeLog
4520acc2014-02-28T12:44:02+01:00

#1250 Fix array bound warning in prt_ctl_init when jpnij /= jpni*jpnj

Change History (1)

comment:1 Changed 10 years ago by acc

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

Fixed at changeset 4250

Note: See TracTickets for help on using tickets.