SERiF v0.0.1a
Stellar Evolution and Rotation in Four Dimensions
Loading...
Searching...
No Matches
resources.hpp File Reference
#include <functional>
#include <memory>
#include <string>
#include <string_view>
#include <vector>
#include "serif/backend/mfem/discretization/resources.hpp"
#include "serif/backend/mfem/mapping/domain_mapper.hpp"
#include "serif/backend/mfem/geometry/deformation/inputs.hpp"
#include "serif/backend/mfem/discretization/dof_map.hpp"
#include "serif/utils/serialize/record.hpp"
Include dependency graph for resources.hpp:
This graph shows which files directly or indirectly include this file:

Classes

struct  serif::backend::mfem::serialize::SaveOptions
 Choose whether reference meshes travel with the archive or are resolved by their content identity. More...
 
class  serif::backend::mfem::serialize::ResourceWriter
 Collect shared meshes, collections and spaces once while recording their associations. More...
 
struct  serif::backend::mfem::serialize::Resources
 Own meshes and finite-element resources in reverse dependency order, for creation and archive restoration. More...
 

Namespaces

namespace  serif
 
namespace  serif::backend
 
namespace  serif::backend::mfem
 
namespace  serif::backend::mfem::serialize
 

Typedefs

using serif::backend::mfem::serialize::MeshResolver = std::function<utils::serialize::Result<std::string>(std::string_view)>
 Supply native MFEM mesh text for the requested content fingerprint when a mesh was omitted.
 

Functions

utils::serialize::Result< Resources > serif::backend::mfem::serialize::restore_resources (const utils::serialize::Node &node, const MeshResolver &resolver={})
 Reconstruct all resources privately, rejecting changed mesh or coefficient interpretations.
 
utils::serialize::Result< geometry::deformation::backend::mfem::ReferenceDiscretization > serif::backend::mfem::serialize::restore_reference (const utils::serialize::Node &node, Resources &resources)
 Bind the saved reference roles to already restored resources.
 
utils::serialize::Node serif::backend::mfem::serialize::binding_coordinates (const discretization::backend::mfem::DofMap &binding)
 Capture domain support and reduced numbering without storing mutable DofMap internals.
 
std::string serif::backend::mfem::serialize::mesh_text (const ::mfem::Mesh &mesh)
 Emit deterministic native mesh text with enough digits to preserve binary64 coordinates.