Opened 11 months ago

Closed 9 months ago

#1922 closed Bug (fixed)

Uninitialized variable in sbcapr.F90

Reported by:Michael Component: OPA
Version: release-3.6 Severity:
Keywords: Cc:
Owned by:Jerome Chanut Milestone:
Priority: low



If ln_apr_dyn is false, then we do not call sbc_apr and we do not read namelist namsbc_apr, and thus we do not initialize ln_apr_obc

However, bdydta.F90 makes use of ln_apr_obc, and this can lead to a segfault


We must not use uninitialized vars


Two choices:
A) Add IF ( ln_apr_dyn ) THEN … ENDIF around the code in bdydta.F90 that uses ln_apr_obc
B) Initialize ln_apr_obc to .FALSE. where it is declared at the top of sbcapr.F90

Commit History (2)


bugfix in trunk for ticket #1922


bugfix in nemo_v3_6_STABLE for ticket #1922

Change History (2)

comment:1 Changed 9 months ago by Claire Levy

  • Owner changed from nemo to jchanut

comment:2 Changed 9 months ago by Clement BRICAUD

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.