Skip to content

Make mfem::FiniteElementSpace a std::shared_ptr in FiniteElementVector - #1626

Open
ebchin wants to merge 3 commits into
developfrom
feature/ebchin/fe-vector-shared-space
Open

Make mfem::FiniteElementSpace a std::shared_ptr in FiniteElementVector#1626
ebchin wants to merge 3 commits into
developfrom
feature/ebchin/fe-vector-shared-space

Conversation

@ebchin

@ebchin ebchin commented Jun 24, 2026

Copy link
Copy Markdown
Member
  • Allows StateManager's FESpace to remain valid even if a user-held FE Space or Dual's space is overwritten or goes out of scope
  • Reinstates move assignment for FE Dual and FE Space, since they no longer break StateManager

@ebchin ebchin self-assigned this Jun 24, 2026
@ebchin
ebchin marked this pull request as ready for review June 24, 2026 06:35
const std::string output_dir = name + "_data";

if (axom::utilities::filesystem::pathExists(output_dir)) {
GTEST_SKIP() << "Output directory already exists from a prior run: " << output_dir;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like these should be a failure not a skip

/**
* @brief Get a shared pointer to the internal FiniteElementCollection
*/
std::shared_ptr<mfem::FiniteElementCollection> shared_coll() const { return coll_; }

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

coll seems too generic since this is user-facing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants