Skip to content
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

Bubble trouble #635

Merged
merged 9 commits into from
Jan 25, 2025
Merged

Bubble trouble #635

merged 9 commits into from
Jan 25, 2025

Conversation

mmalinen
Copy link
Contributor

Fix the handling of bubble DOFs

  1. Fix the creation of permutation vector for bubble DOFs. Now one should get
    indices for bubble DOFs only when the solver has
    "Bubbles In Global System = True" (the default) together with

(i) either an "Element" command leading to bubble DOFs
(ii) or the command "Bubbles = True".

In the case of "Bubbles = True" the count of bubble DOFs cannot be controlled in
a solverwise manner (the maximal count of available bubble indices is returned).
Otherwise the count of bubble DOFs is determined in a solverwise manner, so
for the best control of bubble DOFs it is recommended to use an Element command.

  1. Change the subroutines GetElementNOFDOFs, GetElementNOFBDOFs and
    GetElementDOFs so that they are consistent with the handling of bubbles
    explained in the first item.

A test case NaturalConvectionRestartCycle has suffered from having permutations
of wrong sizes and also needed a fix of norm.

In addition to these changes, this commit contains an unrelated fix for
BlockSolve to avoid processing outside array bounds.

@mmalinen mmalinen merged commit 8cb7258 into devel Jan 25, 2025
17 of 22 checks passed
@mmalinen mmalinen deleted the bubble_trouble branch January 25, 2025 12:03
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.

1 participant