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

Remove unused option core #5192

Merged

Conversation

mfmweerdesteijn
Copy link
Contributor

@mfmweerdesteijn mfmweerdesteijn commented Jul 7, 2023

Pull Request Checklist. Please read and check each box with an X. Delete any part not applicable. Ask on the forum if you need help with any step.

Describe what you did in this PR and why you did it.

Before your first pull request:

For all pull requests:

For new features/models or changes of existing features:

  • I have tested my new feature locally to ensure it is correct.
  • I have created a testcase for the new feature/benchmark in the tests/ directory.
  • I have added a changelog entry in the doc/modules/changes directory that will inform other users of my change.

@@ -109,12 +109,8 @@ namespace aspect
if (geometry_model.has_curved_elements())
return std::make_unique<MappingQCache<dim>>(4);

#if !DEAL_II_VERSION_GTE(9,4,0) || DEAL_II_VERSION_GTE(9,4,1)
Copy link
Contributor

Choose a reason for hiding this comment

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

Just talking myself through this: The condition means that deal.II either (i) is prior to 9.4, or (ii) 9.4.1 or later. The former cannot happen any more, but it is conceivable that someone uses deal.II 9.4.0. So I think the right change here is to replace this line by

#if DEAL_II_VERSION_GTE(9,4,1)

and leave the rest of the code we have here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh right, looked over the '!'

Copy link
Contributor

@bangerth bangerth left a comment

Choose a reason for hiding this comment

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

Yes, looks good now!

@bangerth
Copy link
Contributor

bangerth commented Jul 7, 2023

Do you know how to "squash" the six commits into one? This way, there would only be one commit that encapsulates everything, and the various detours you took will no longer be visible :-)

@gassmoeller gassmoeller merged commit 83dfacc into geodynamics:main Jul 8, 2023
6 checks passed
@mfmweerdesteijn mfmweerdesteijn deleted the remove_unused_option_core branch July 8, 2023 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants