Enable adaptive mesh support on libMesh tallies (#3185)

Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
This commit is contained in:
Kevin Sawatzky 2024-11-23 08:09:47 -06:00 committed by GitHub
parent ae37d6c0da
commit dd01c40ae1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 82 additions and 15 deletions

View file

@ -948,6 +948,7 @@ public:
private:
void initialize() override;
void set_mesh_pointer_from_filename(const std::string& filename);
void build_eqn_sys();
// Methods
@ -966,7 +967,8 @@ private:
vector<unique_ptr<libMesh::PointLocatorBase>>
pl_; //!< per-thread point locators
unique_ptr<libMesh::EquationSystems>
equation_systems_; //!< pointer to the equation systems of the mesh
equation_systems_; //!< pointer to the libMesh EquationSystems
//!< instance
std::string
eq_system_name_; //!< name of the equation system holding OpenMC results
std::unordered_map<std::string, unsigned int>
@ -975,6 +977,13 @@ private:
libMesh::BoundingBox bbox_; //!< bounding box of the mesh
libMesh::dof_id_type
first_element_id_; //!< id of the first element in the mesh
const bool adaptive_; //!< whether this mesh has adaptivity enabled or not
std::vector<libMesh::dof_id_type>
bin_to_elem_map_; //!< mapping bin indices to dof indices for active
//!< elements
std::vector<int> elem_to_bin_map_; //!< mapping dof indices to bin indices for
//!< active elements
};
#endif