You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When switching from using the WarpX executable to using Python/PICMI (e.g. in order to take advantage of the Python callback functions), users usually have to rewrite their input script from scratch. (i.e. switching from the input script syntax to the PICMI syntax)
This is often time consuming and error prone. Instead it could be useful to have the option to load an input script in Python, e.g.:
sim=Simulation.from_input_script( './inputs_3d' ) # loads an existing input scriptinstallcallback('afterstep', myplots) # optional: add callback functionsim.step() # runs the simulation
## Summary
If a file added via `ParmParse:addFile` does not exist, we did not yet
receive a user-friendly error message. This fixes this in a way that
does not hammer the file system from all MPI ranks.
## Additional background
Follow-up to #2842#2936#3440
X-ref: ECP-WarpX/WarpX#5283ECP-WarpX/impactx#704
When switching from using the WarpX executable to using Python/PICMI (e.g. in order to take advantage of the Python callback functions), users usually have to rewrite their input script from scratch. (i.e. switching from the input script syntax to the PICMI syntax)
This is often time consuming and error prone. Instead it could be useful to have the option to load an input script in Python, e.g.:
One could use a syntax similar to the one in ImpactX:
https://github.com/ECP-WarpX/impactx/blob/24.09/src/python/ImpactX.cpp#L79
which relies on:
https://github.com/AMReX-Codes/pyamrex/blob/development/src/Base/ParmParse.cpp#L33
See also:
AMReX-Codes/amrex#4156
The text was updated successfully, but these errors were encountered: