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

Added finite-difference support to the log_deriv subroutine. #572

Merged
merged 4 commits into from
Aug 28, 2024

Conversation

feathern
Copy link
Contributor

This PR should fix the finite-difference part of issue #570 reported by @rpvin . Please try this out when you get a chance to see if initialization now works properly for custom reference states with FD turned on.

@tukss
Copy link
Contributor

tukss commented Aug 27, 2024

There was a missing if guard around the deallocate. I've pushed that directly to your branch.

@feathern
Copy link
Contributor Author

Good catch. I just moved the deallocate statement into the main Chebyshev "if" block to save a couple of lines of code + keep related things together.

@tukss
Copy link
Contributor

tukss commented Aug 27, 2024

That looks good. I'm just running some tests here and will approve this later today if all goes well.

@tukss
Copy link
Contributor

tukss commented Aug 27, 2024

It seems to work fine with gfortran but I'm getting a floating-point overflow after the first time step with the Intel compiler (the new LLVM based one). I'm investigating where this comes from.

@tukss
Copy link
Contributor

tukss commented Aug 28, 2024

OK. That seems to have been some bad interaction of Cray libsci as the LAPACK provider and the ifx compiler. Switching to MKL instead fixes the problem.

Copy link
Contributor

@tukss tukss left a comment

Choose a reason for hiding this comment

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

Works in my test cases.

@feathern feathern merged commit ad02113 into geodynamics:main Aug 28, 2024
7 checks passed
@feathern
Copy link
Contributor Author

Great -- thanks for checking that.

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