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

[Development] Add a restarting procedure #280

Open
2 of 4 tasks
sblauth opened this issue Aug 4, 2023 · 2 comments
Open
2 of 4 tasks

[Development] Add a restarting procedure #280

sblauth opened this issue Aug 4, 2023 · 2 comments
Assignees
Labels
development Development-related matters
Milestone

Comments

@sblauth
Copy link
Owner

sblauth commented Aug 4, 2023

We have nearly everything available to make cashocs jobs restartable. Meshes can be read from saved state files and can (soon) be extracted to gmsh again. These can then be used to define a new initial geometry, and so on.

What we still need is:

  • A way to generate meaningful Gmsh meshes with physical tags (see [Development] Use builtin write_mesh functionality for extract mesh #281)
  • When a remeshing occurs, the new mesh has to be saved publicly so that it can be used to restart the session
  • A script / CLI for automatically performing the required mesh conversions, etc. so that the user only has to adapt the initial mesh in their script
  • Documentation of the feature for a simple example
@sblauth sblauth added the development Development-related matters label Aug 4, 2023
@sblauth sblauth added this to the v2.1 milestone Aug 4, 2023
@sblauth sblauth self-assigned this Aug 4, 2023
@sblauth
Copy link
Owner Author

sblauth commented Aug 14, 2023

I think that it is not so sensible to create a script which automatically converts everything to restart automatically. I think there are way too many variables in which users set up their code and where things (e.g. meshes) are stored.

@sblauth sblauth modified the milestones: v2.1, v2.2 Oct 25, 2023
@sblauth
Copy link
Owner Author

sblauth commented Oct 25, 2023

Maybe it makes sense to add a restart = bool config option... This would take the config as it is and look for the latest available checkpoint automatically. If none is found, then the script is run as-is.

The difficulty with this approach is that the mesh filename has to be changed dynamically: Is this possible? Do we have to overload the cashocs.import_mesh functionality? This is where the interplay fenics <-> cashocs is crucial and leads to problems...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
development Development-related matters
Projects
None yet
Development

No branches or pull requests

1 participant