Skip to content

Rebuild a0 solver in ScalarPotentialSource when Apply called#112

Closed
EdwardPalmer99 wants to merge 1 commit intoEdwardPalmer99/mesh-update-feature-branchfrom
EdwardPalmer99/mesh-update-feature/rebuild-scalar-potential-source-a0-solver
Closed

Rebuild a0 solver in ScalarPotentialSource when Apply called#112
EdwardPalmer99 wants to merge 1 commit intoEdwardPalmer99/mesh-update-feature-branchfrom
EdwardPalmer99/mesh-update-feature/rebuild-scalar-potential-source-a0-solver

Conversation

@EdwardPalmer99
Copy link
Contributor

@EdwardPalmer99 EdwardPalmer99 commented May 24, 2024

Required for updates to work correctly. Refer to TestTEAM4HFormMeshUpdates test.
@EdwardPalmer99 EdwardPalmer99 self-assigned this May 24, 2024
@EdwardPalmer99 EdwardPalmer99 changed the base branch from master to EdwardPalmer99/mesh-update-feature-branch May 24, 2024 16:10
@EdwardPalmer99 EdwardPalmer99 changed the title Rebuild a0 solver in ScalarPotentialSource when Apply called. Rebuild a0 solver in ScalarPotentialSource when Apply called May 24, 2024
@EdwardPalmer99 EdwardPalmer99 marked this pull request as draft May 24, 2024 16:58
@EdwardPalmer99 EdwardPalmer99 marked this pull request as draft May 24, 2024 16:58
@EdwardPalmer99 EdwardPalmer99 marked this pull request as ready for review May 30, 2024 10:16
_a0_solver = std::make_unique<hephaestus::DefaultH1PCGSolver>(_solver_options, *_diffusion_mat);
}
// Solve
_a0_solver = std::make_unique<hephaestus::DefaultH1PCGSolver>(_solver_options, *_diffusion_mat);
Copy link
Contributor

Choose a reason for hiding this comment

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

Big performance hit here if a0_solver does not need to be reused; but necessary for mesh updates, since the solver will need to be rebuilt then. Rebuild could go into an Update() method?

@alexanderianblair
Copy link
Contributor

Closing in favour of #113, which includes a test with mesh updates that requires this.

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