v0.16.3
Loading...
Searching...
No Matches
EshelbianRestart.hpp
Go to the documentation of this file.
1/**
2 * @file EshelbianRestart.hpp
3 * @brief Native restart vector layout validation.
4 */
5
6#ifndef ESHELBIAN_RESTART_HPP
7#define ESHELBIAN_RESTART_HPP
8
9#include <string>
10
11namespace EshelbianPlasticity {
12
13struct EshelbianCore;
14
15/** Write binary_file + ".layout.json" collectively after saving the vector. */
17 const std::string &binary_file);
18
19/** Validate collectively before VecLoad; neither the vector nor mesh changes.
20 * Auxiliary restarts require metadata. Existing raw direct-law restarts remain
21 * accepted, but any metadata present must match the selected native layout.
22 */
24 const std::string &binary_file);
25
26} // namespace EshelbianPlasticity
27
28#endif // ESHELBIAN_RESTART_HPP
MoFEM::MoFEMErrorCode writeRestartLayout(const EshelbianCore &ep, Vec state, const std::string &binary_file)
MoFEM::MoFEMErrorCode validateRestartLayout(const EshelbianCore &ep, Vec state, const std::string &binary_file)
PetscErrorCode MoFEMErrorCode
MoFEM/PETSc error code.