Skip to content

Update MOM_diabatic_driver.F90#11

Closed
pjpegion wants to merge 2 commits into
jiandewang:dev-emc-candidate-20220824from
pjpegion:patch-2
Closed

Update MOM_diabatic_driver.F90#11
pjpegion wants to merge 2 commits into
jiandewang:dev-emc-candidate-20220824from
pjpegion:patch-2

Conversation

@pjpegion
Copy link
Copy Markdown

@pjpegion pjpegion commented Sep 2, 2022

remove trailing whitespace

@jiandewang jiandewang force-pushed the dev-emc-candidate-20220824 branch from f046281 to d23c926 Compare September 2, 2022 14:14
@jiandewang jiandewang closed this Jan 28, 2023
jiandewang pushed a commit that referenced this pull request Mar 7, 2024
Applying the first iteration explicitly appears to speed up the cuberoot
function by a bit over 20%:

 Before:
 Halley Final:  0.14174999999999999

 After:
 Halley Final:  0.11080000000000001

There is an assumption that compilers will precompute the constants like
`0.7 * (0.7)**3`, and that all will do so in the same manner.
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