Opened 4 years ago

Closed 4 years ago

#697 closed task (fixed)

Segmentation fault in ropp_1dvar_refrac

Reported by: Stig Syndergaard Owned by: Johannes K. Nielsen
Priority: normal Milestone: DMI ROPP developments
Component: ropp_1dvar Version: 10.0
Keywords: Cc:

Description

The ropp_1dvar_refrac.f90 code crashes on segmentation fault when one of the ropp_qc routines returns diag%ok = .false. Then state%state is not populated. Later in Section 13.6 there is then an assignment to the 0 index which is not defined.

Possibly Section 13.6 just needs to be inside the IF blok where diag%ok = .true.

Change history (1)

in reply to:  description comment:1 by Johannes K. Nielsen, 4 years ago

Resolution: fixed
Status: newclosed

Replying to ssy:

The ropp_1dvar_refrac.f90 code crashes on segmentation fault when one of the ropp_qc routines returns diag%ok = .false. Then state%state is not populated. Later in Section 13.6 there is then an assignment to the 0 index which is not defined.

Possibly Section 13.6 just needs to be inside the IF blok where diag%ok = .true.

Fix w. comments has been checked into https://trac.romsaf.org/ropp/changeset/6594/ropp_src/branches/dev/Share/dmi_trunk_9.0/ropp_1dvar

Note: See TracTickets for help on using tickets.