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

Duplicated code for constraints in navier_stokes solver #1303

Closed
blaisb opened this issue Oct 3, 2024 · 1 comment · Fixed by #1313
Closed

Duplicated code for constraints in navier_stokes solver #1303

blaisb opened this issue Oct 3, 2024 · 1 comment · Fixed by #1313

Comments

@blaisb
Copy link
Contributor

blaisb commented Oct 3, 2024

There is a lot of duplicated code in the way constraints are managed between the navier_stokes_matrix_based, navier_stokes_block_matrix and navier_stokes_matrix_free code.
All of the constraint management could be moved to the base class and the exception handling for the few boundary conditions that are not managed correctly could be moved elsewhere. This would remove a lot of line of codes and would have prevented bug like the one I fixed in #1302 .

@lpsaavedra do you want to do it or I can take care of it :). Your call

@lpsaavedra
Copy link
Collaborator

I can take care of it!

@lpsaavedra lpsaavedra linked a pull request Oct 9, 2024 that will close this issue
11 tasks
blaisb pushed a commit that referenced this issue Oct 9, 2024
…1313)

Description
As mentioned in #1303, the constraints of the matrix free application are now mature enough to have only one common implementation for the three fluid dynamics applications: matrix-based, matrix-free and block applications. Therefore, the three main functions related to boundary conditions are now in only one place in the base class, i.e., NavierStokesBase.

Testing
No additional tests are included. All the existent tests pass for the three fluid dynamics applications.

Documentation
No documentation required for 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 a pull request may close this issue.

2 participants