-
Notifications
You must be signed in to change notification settings - Fork 646
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
Clean exit for "simulation fields are NaN or Inf" #1183
Comments
Doesn't our Python API intercept this and turn it into an exception? |
Yes you're right. Seems like a |
Hi, all. I am Hyounghan Kwon who is doing reasearch about nanophotnoics. I am using pmp (parallel meep) and try to solve eigenfrequency solver. (solve_eigfreq) Thanks a lot and stay healthy! |
#922 stops the simulation if a NaN or Inf is detected. Unfortunately, this also kills the process.
Is there a way to stop the simulation at this point without killing the process? This is problematic when optimizing over several simulations and a geometry is chosen that blows up the fields. Rather than kill everything (and lose progress) it would be better to stop the simulation early so the optimizer knows this is a poor route to pursue.
The text was updated successfully, but these errors were encountered: