Opened 7 years ago

Closed 7 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: release-3.6
Severity: Keywords:
Cc: Branch review:
MP ready?: Task progress:


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)


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

Change History (1)

comment:1 Changed 7 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.