pyclaw icon indicating copy to clipboard operation
pyclaw copied to clipboard

call_before_step_each_stage=False passes uninitialized aux to riemann solver

Open GustafssonJonathan opened this issue 8 years ago • 2 comments

For sharpclaw passing to following options: solver.aux_time_de = True solver.call_before_step_each_stage = False

Seems to pass a uninitialized aux array to the Fortran Riemann solver. solver.call_before_step_each_stage = True works as expected.

GustafssonJonathan avatar Feb 03 '16 15:02 GustafssonJonathan

Could you link to a full example that reproduces this behavior? Thanks.

ketch avatar Feb 25 '16 07:02 ketch

No problem. Here is a modified version of acoustics_2d_variable The solver gives nan when solver.before_step_each_stage = False and works correctly when solver.before_step_each_stage = True

On Thu, Feb 25, 2016 at 2:46 AM, David Ketcheson [email protected] wrote:

Could you link to a full example that reproduces this behavior? Thanks.

— Reply to this email directly or view it on GitHub https://github.com/clawpack/pyclaw/issues/536#issuecomment-188657374.

GustafssonJonathan avatar Feb 25 '16 17:02 GustafssonJonathan