-
Notifications
You must be signed in to change notification settings - Fork 241
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
Make the GMG solver the new default solver. #5211
Conversation
Get out the popcorn! |
918 of 1025 tests are failures -- not bad, you broke ~90% of all tests :-) |
And the test output diff is 100 MB! |
acdd452
to
7a46ae6
Compare
1c3905f
to
fa5d97a
Compare
/rebuild |
I think this is now ready for a first review. I still want to look through the test output one more time, but I would appreciate feedback on the way I implemented the changes and the fallback functionality in the code. |
source/simulator/helper_functions.cc
Outdated
|
||
pcout << "Warning, the GMG preconditioner is not supported for models locally conservative discretization. Disabling GMG preconditioner." << std::endl; | ||
} | ||
else if (geometry_model->get_periodic_boundary_pairs().size() > 0) |
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.
source/simulator/parameters.cc
Outdated
@@ -1327,7 +1327,7 @@ namespace aspect | |||
// preconditioner | |||
prm.enter_subsection ("Material model"); | |||
{ | |||
prm.declare_entry ("Material averaging", "none", | |||
prm.declare_entry ("Material averaging", "project to Q1 only viscosity", |
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 have to think about if this is the right thing to do, because it silently changes the averaging even for models that use AMG preconditioner. I also have to check the cookbooks that discuss averaging to make sure they do use the correct averaging and do not contradict this new default value.
b113086
to
a145b93
Compare
60bda51
to
b2b2608
Compare
@@ -712,7 +712,8 @@ namespace aspect | |||
log_average, | |||
harmonic_average_only_viscosity, | |||
geometric_average_only_viscosity, | |||
project_to_Q1_only_viscosity | |||
project_to_Q1_only_viscosity, | |||
solver_default |
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.
default_averaging
?
521ca3e
to
7407075
Compare
7407075
to
914e56d
Compare
db68452
to
dd46a7a
Compare
Can you check:
|
691cb12
to
571b090
Compare
broken:
|
88bef17
to
211c29a
Compare
I fixed the cookbooks by specifying AMG for now. Everything else is passing? Does that mean we are ready for flipping the big switch? 😄 |
211c29a
to
a8b5ea8
Compare
can you check:
|
6fc2f50
to
165f14f
Compare
Ok, I have update the PR as discussed. I have adjusted two solver default settings to be more reasonable for GMG:
Regarding the cookbooks:
I think I am happy with the current state. I would have to squash before merge, but I wanted to keep the test updates separate from each other for review. Opinions? |
I think this is good to go now, thank you Rene! |
165f14f
to
09b0ac0
Compare
09b0ac0
to
d92b5bb
Compare
🎉 What a relief. |
For now this is just a trial to see which tests break.