Opened 6 years ago

Closed 6 years ago

#1431 closed Bug (fixed)

Unitialised arrays in domzgr

Reported by: timgraham Owned by: timgraham
Priority: low Milestone:
Component: OCE Version: trunk
Severity: Keywords:
Cc:

Description

In the dom_bat subroutine in domzgr.F90 the variables risfdep and misfdep are not initialised in all cases. Specifically in the case where ( ntopo == 0 .OR. ntopo == -1 ) they are only initialised for the ISOMIP configurations. This means that they are unitialised in the GYRE configuration. This can cause a segmentation fault later in the code as mikt (which is derived from these variables) is used as an index for tsn.

I'll fix this by adding in an initialisation at line 467 of domzgr.F90

Commit History (1)

ChangesetAuthorTimeChangeLog
5015timgraham2015-01-08T12:08:12+01:00

Fix for unitialised arrays in domzgr.F90 (#1431)

Change History (1)

comment:1 Changed 6 years ago by timgraham

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

Fixed at revision r5015

Note: See TracTickets for help on using tickets.