Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stop simulation if NaN or Inf encountered #922

Merged
merged 2 commits into from
Jun 15, 2019
Merged

stop simulation if NaN or Inf encountered #922

merged 2 commits into from
Jun 15, 2019

Conversation

stevengj
Copy link
Collaborator

Fixes #916.

It should suffice to check a single point in the center of the computational cell, because once the simulation blows up anywhere it soon blows up everywhere. And since checking a single point is so cheap, we might as well do it at every timestep.

@stevengj stevengj merged commit 5b2f4b9 into master Jun 15, 2019
@stevengj stevengj deleted the stopnan branch June 15, 2019 00:44
bencbartlett pushed a commit to bencbartlett/meep that referenced this pull request Sep 9, 2021
* stop simulation if NaN or Inf encountered

* sufficient to check D_EnergyDensity since the fields are coupled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

abort with error message when fields have diverged
1 participant