Skip to content

Simulation stalls after "Setting invalid value" warning (BoutException) — should we abort earlier? #448

@malamast

Description

@malamast

Hi all,

In some runs the solver prints a warning indicating that an invalid value was set for a field, and shortly afterward the simulation appears to stall (time/steps stop making any progress and the run effectively hangs).

Example log snippet:
^M2.328e+06 198 4.67e+00 79.9 0.0 1.6 4.6 13.9
/ Step 2673 of 7228. Elapsed 3:49:58.8 ETA 5:54:14.9^MTime: 2333164.8061423623, timestep: 4173.610483127789, nl iter: 2, lin iter: 34, reason: 3
WARNING: BoutException thrown: Setting invalid value for 'e:energy_source'

The warning originates from the “invalid value” guard in component.hxx:
https://github.com/boutproject/hermes-3/blob/master/include/component.hxx#L255

Would it be better / acceptable to terminate the run immediately when this happens (i.e., treat it as a fatal error) rather than continuing after issuing a warning?

I use the SNES backward euler solver for these 2D transport simulations with neutrals (no drifts).

Metadata

Metadata

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions