Skip to content

Adaptivity improvements #4184

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: devel
Choose a base branch
from

Conversation

lindsayad
Copy link
Member

@lindsayad lindsayad commented Jun 3, 2025

@lindsayad lindsayad marked this pull request as draft June 3, 2025 18:42
@lindsayad lindsayad closed this Jun 11, 2025
@lindsayad lindsayad force-pushed the sc-with-adaptivity branch from 1db4795 to b57a129 Compare June 11, 2025 16:46
@lindsayad lindsayad reopened this Jun 11, 2025
@lindsayad lindsayad changed the title [WIP] Add support for adaptivity to static condensation Add support for adaptivity to static condensation Jun 11, 2025
@lindsayad lindsayad force-pushed the sc-with-adaptivity branch from 458dc7b to e9bb873 Compare June 11, 2025 17:20
@lindsayad lindsayad force-pushed the sc-with-adaptivity branch from e9bb873 to c4e48be Compare June 11, 2025 18:42
@moosebuild
Copy link

moosebuild commented Jun 11, 2025

Job Coverage, step Generate coverage on 24e132a wanted to post the following:

Coverage

b57a12 #4184 24e132
Total Total +/- New
Rate 63.63% 63.65% +0.01% 91.14%
Hits 75856 75891 +35 72
Misses 43353 43348 -5 7

Diff coverage report

Full coverage report

This comment will be updated on new commits.

@lindsayad lindsayad marked this pull request as ready for review June 11, 2025 21:02
@lindsayad
Copy link
Member Author

MetaPhysicL failure again 😦

@lindsayad lindsayad force-pushed the sc-with-adaptivity branch from 3d07782 to 24e132a Compare June 11, 2025 22:18
@lindsayad lindsayad requested a review from roystgnr June 12, 2025 03:23
This ensures that if there is no mesh refinement before another
call to project vectors that vector projection will work

Refs attempt to `disable_refine_in_reinit` in idaholab/moose#30742
@lindsayad lindsayad changed the title Add support for adaptivity to static condensation Adaptivity improvements Jun 12, 2025
lindsayad added a commit to lindsayad/moose that referenced this pull request Jun 12, 2025
lindsayad added a commit to lindsayad/moose that referenced this pull request Jun 12, 2025
Because we do not use the SC dof map in any way for solution projection.
And static condensation doesn't even make much sense without matrices
Copy link
Member

@roystgnr roystgnr left a comment

Choose a reason for hiding this comment

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

I think I'm happy with this, though I'd love for @jwpeterson to take a look too.

@@ -166,6 +189,32 @@ class StaticCondensationDofMap : public DofMapBase

/// Number of off-diagonal nonzeros per row in the reduced system
std::vector<dof_id_type> _reduced_noz;

/// Set of local uncondensed degrees of freedom (numbered in the full system). This data member is
/// used only during the reinit phase and is cleared at its conclusion
Copy link
Member

Choose a reason for hiding this comment

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

It looks like you're also using it in the constructor, but in each case wouldn't it make sense to have this be a local variable rather than a member variable? You'd need to pass it to add_uncondensed_dof() as another argument, but then it's a little easier to follow program flow.

std::unordered_map<processor_id_type, std::unordered_set<dof_id_type>> _nonlocal_uncondensed_dofs;

/// Used for temporary storage of uncondensed degrees of freedom active on an element
std::vector<dof_id_type> _elem_uncondensed_dofs;
Copy link
Member

Choose a reason for hiding this comment

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

Likewise for these two. Though I admit we're now up to three more arguments, and my suggestion is getting less compelling, it just feels confusing to have temporary storage saved as members.

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