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

Update std::pow where possible #6188

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

gassmoeller
Copy link
Member

This is the promised repeat of #6055 after #6072 was merged. #6072 added a lot of new occurences of std::pow that I had missed in #6055, because they were not qualified with std.
This should catch all the remaining cases that can be replaced with Utilites::fixed_power.

Just for future reference these are the regexes I used:
search: std::pow\(([^)]*?), *(-*[2,3,4,5])\.*0*\)
replace: Utilities::fixed_power<$2>($1)

This PR sits on top of #6187 to avoid conflicts, but that means #6187 has to be merged before this one.

@gassmoeller gassmoeller force-pushed the update_dynamic_core_3 branch from f6196c8 to cc1452a Compare December 12, 2024 15:35
@gassmoeller gassmoeller force-pushed the update_dynamic_core_3 branch from cc1452a to a5611e7 Compare December 13, 2024 10:19
@tjhei tjhei merged commit ac031d4 into geodynamics:main Dec 13, 2024
8 checks passed
@gassmoeller gassmoeller deleted the update_dynamic_core_3 branch December 14, 2024 10:13
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.

2 participants