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

restart with implicit solver #5482

Open
JustinRayAngus opened this issue Nov 22, 2024 · 0 comments
Open

restart with implicit solver #5482

JustinRayAngus opened this issue Nov 22, 2024 · 0 comments
Assignees
Labels
bug Something isn't working component: implicit solvers Anything related to implicit solvers

Comments

@JustinRayAngus
Copy link
Contributor

JustinRayAngus commented Nov 22, 2024

WarpX cannot perform a restart when using the implicit solvers.

Here is the error message from trying to restart a 2D simulation:
--- INFO : Runtime real component x_n was found in the checkpoint file, but
it has not been added yet. Adding it now.
--- INFO : Runtime real component z_n was found in the checkpoint file, but
it has not been added yet. Adding it now.
--- INFO : Runtime real component ux_n was found in the checkpoint file, but
it has not been added yet. Adding it now.
--- INFO : Runtime real component uy_n was found in the checkpoint file, but
it has not been added yet. Adding it now.
--- INFO : Runtime real component uz_n was found in the checkpoint file, but
it has not been added yet. Adding it now.
amrex::Abort::444::ParticleContainer::Restart(): nr not the expected value !!!
SIGABRT

The --INFO lines are produced around line 172 of Source/Diagnostics/ParticleIO.cpp. The implicit solver defines these extra variables at runtime. They are written to the checkpoint file, but they are not needed. At the time the restart file is read, these extra variables have not yet been added to the particle container, so these variables are added in the Restart function in ParticleIO.cpp (should they be added here?).

The Abort comes from the Restart function called in amrex/Src/Particle/AMReX_ParticleIO.H around line 700. There it reads in the number of components (which is 5 more now than it is normally for a 2D simulation), and it fails because it is expected this value to be equal to
nrc = NStructReal + NumRealComps() - AMREX_SPACEDIM, which I have verified is 5 time less than what nr is equal to.

This needs to be fixed. Question is how to fix it. Which part of this problem is the one that is non-ideal? @RemiLehe @WeiqunZhang @dpgrote

Ideas?

@JustinRayAngus JustinRayAngus added bug Something isn't working component: implicit solvers Anything related to implicit solvers labels Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component: implicit solvers Anything related to implicit solvers
Projects
None yet
Development

No branches or pull requests

4 participants