PHAREHUB/PHARE

Restart file / code compatibility

Open

#1,118 opened on Jan 8, 2026

View on GitHub
 (0 comments) (0 reactions) (1 assignee)C++ (33 forks)auto 404
featuregood first issue

Repository metrics

Stars
 (78 stars)
PR merge metrics
 (PR metrics pending)

Description

SAMRAI restart files are setup in such a way as to match the registered patch data ids of PHARE code at a particular point in time. This can make a newer version of PHARE incompatible with existing SAMRAI restart files for PHARE.

Currently, attempting to restart PHARE with an incompatible SAMRAI restart file, will most likely lead to errors, segfaults, etc. And it may not be completely obvious the error is even related to the restart file incompatibility.

So, we probably want to consider some sort of versioning system, which could be some hash of all available patch data names for all models.

something like https://coliru.stacked-crooked.com/a/12f52e362131a9f8

Contributor guide