Skip to content

Conversation

@chvillanuevap
Copy link
Member

This branch includes supporting changes required for the scalar wave solver:

  • Made checkpointed solution accessors public to allow test-time comparison with analytical solution.
  • Modified boundary condition interface to support DOF lists and scalar fields (it only worked for vector fields before).

@chvillanuevap chvillanuevap requested review from btalamini and tupek2 May 23, 2025 07:09
* @param cycle The cycle to retrieve state from
* @return A map containing the primal field names and their associated FiniteElementStates at the requested cycle
*/
std::unordered_map<std::string, FiniteElementState> getCheckpointedStates(int cycle);
Copy link
Collaborator

@tupek2 tupek2 May 23, 2025

Choose a reason for hiding this comment

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

I'm confused by this change? We have other tests that use loadCheckpointedState(const std::string& state_name, int cycle), which is public. Why not use that?

auto scalar_coef = get<std::shared_ptr<mfem::Coefficient>>(coef_);
scalar_coef->SetTime(time);
if (component_) {
if (component_ || attr_markers_.Size() == 0) { // TODO: If attribute markers is empty, that means this is applied to the entire domain (component could be zero).
Copy link
Collaborator

Choose a reason for hiding this comment

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

why is this needed? was there a bug?

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.

3 participants