New URL for NEMO forge!

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.
#1431 (Unitialised arrays in domzgr) – NEMO

Opened 9 years ago

Closed 9 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:


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)


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

Change History (1)

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