-
Notifications
You must be signed in to change notification settings - Fork 66
Max uniform refinement #1599
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
Max uniform refinement #1599
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just 2 small comments.
source/solvers/navier_stokes_base.cc
Outdated
auto &tria = *dynamic_cast<parallel::distributed::Triangulation<dim> *>( | ||
this->triangulation.get()); | ||
if (tria.n_levels() > | ||
this->simulation_parameters.mesh_adaptation.maximum_refinement_level) | ||
return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you need this dynamic cast here.
The very base triangulation class: https://dealii.org/current/doxygen/deal.II/classTriangulation.html#a777f035a17e91a4d822971516ca11db5
Has this function n_levels. ( see n_levels)
So I don't think you need to case before this refinement.
For sure we don't support refining simplex meshes, so that could be asserted to prevent a bug ( I don't know what happens if you try to refine a simplex mesh now)
subsection heat transfer | ||
set verbosity = quiet | ||
set method = gmres | ||
set relative residual = 1e-3 | ||
set minimum residual = 1e-8 | ||
set preconditioner = ilu | ||
set ilu preconditioner fill = 0 | ||
set ilu preconditioner absolute tolerance = 1e-12 | ||
set ilu preconditioner relative tolerance = 1.00 | ||
set max krylov vectors = 200 | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
heat transfer isdisabled in this test case right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1-2 small things and then it's good to go
@blaisb Sorry for not using the default parameters. I will pay more attention next time I take a prm as reference. |
It's not a big deal, happens to me all the time don't worry about it |
@voferreira can you just add a changelog entry? This would be ready for merge directly after that :). |
Sorry me! I did not catch it myself while using another prm as a reference. I will be more careful with using default parameters for tests Co-authored-by: Bruno Blais <[email protected]>
3b46edf
to
6ad4c25
Compare
@blaisb I just added the entry. |
Description
The maximum number of mesh adapt parameter was not taken into account while using uniform mesh adaptation in transient simulations.
Solution
Added a check for it prior to running the global refinement.
Testing
A simple application test was added.
Documentation
N/A. The current documentation is sufficient.\
Miscellaneous (will be removed when merged)
Checklist (will be removed when merged)
See this page for more information about the pull request process.
Code related list:
Pull request related list: