Automatic time step with Electrostatic solver? #5431
-
Hi, Is it possible to automatically calculate the time step when using the Electrostatic solver? If I don't define time_step_size in my picmi.Simulation command, I get the following error:
The online documentation for the Electrostatic solver (https://warpx.readthedocs.io/en/latest/usage/python.html) says
But if I add "warpx_dt_update_interval=1" to the argument for Electrostatic solver, WarpX doesn't recognize it:
Looking at the picmi.py file, it seems like the keyword is actually "dt_update_interval":
But if I change "warpx_dt_update_interval=1" to "dt_update_interval=1", WarpX still doesn't recognize it:
Is there a way to get this to work, or am I stuck with a fixed time step? Thanks for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Thanks for the issue. This is a mistake in the picmi interface. I'll submit a PR to fix this. You can fix this temporarily by changing the line in picmi.py to The fix is in PR #5434 |
Beta Was this translation helpful? Give feedback.
Thanks for the issue. This is a mistake in the picmi interface. I'll submit a PR to fix this. You can fix this temporarily by changing the line in picmi.py to
self.dt_update_interval = kw.pop("warpx_dt_update_interval", None)
and then pass in the keyword argument 'warpx_dt_update_interval`.The fix is in PR #5434