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

Extend 'Derivs' to cover 6th and 8th order finite difference #307

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

lwJi
Copy link
Contributor

@lwJi lwJi commented Sep 8, 2024

Derivs:

  1. implement 6th and 8th order accurate central finite difference.
  2. implement dissipation and upwind derivatives corresponding to 6th and 8th order central finite difference.

TestDerivs:

  1. implement unit test for all above.

all the coefficients used are calculated here using mathematica
https://github.com/lwJi/Docs-Subcycling/blob/main/wolfram/Derivs.ipynb

@rhaas80
Copy link
Member

rhaas80 commented Oct 28, 2024

Fails in SYCL build due to calls via function pointer:

https://github.com/EinsteinToolkit/CarpetX/actions/runs/11491459037/job/31983862784?pr=307#step:6:5364

needs changes.

@rhaas80 rhaas80 self-assigned this Oct 28, 2024
Copy link
Member

@rhaas80 rhaas80 left a comment

Choose a reason for hiding this comment

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

Fails due to compile for SYCL due to calls via function pointer:

https://github.com/EinsteinToolkit/CarpetX/actions/runs/11491459037/job/31983862784?pr=307#step:6:5364

probably also would fail (at runtime) for CUDA.

@lwJi
Copy link
Contributor Author

lwJi commented Oct 28, 2024

Fails due to compile for SYCL due to calls via function pointer:

https://github.com/EinsteinToolkit/CarpetX/actions/runs/11491459037/job/31983862784?pr=307#step:6:5364

probably also would fail (at runtime) for CUDA.

I have remove the usage of function pointer, please take another look

Derivs/src/derivs.cxx Outdated Show resolved Hide resolved
Derivs/src/derivs.cxx Outdated Show resolved Hide resolved
Derivs/src/derivs.cxx Outdated Show resolved Hide resolved
Derivs/src/derivs.cxx Outdated Show resolved Hide resolved
TestDerivs/interface.ccl Outdated Show resolved Hide resolved
TestDerivs/src/test.cxx Outdated Show resolved Hide resolved
TestDerivs/src/test.cxx Outdated Show resolved Hide resolved
@lwJi
Copy link
Contributor Author

lwJi commented Oct 28, 2024

Hi @eschnett @rhaas80, I have addressed the comments in the above few commits. Thanks

Derivs/src/derivs.cxx Show resolved Hide resolved
Derivs/src/derivs.cxx Show resolved Hide resolved
TestDerivs/param.ccl Show resolved Hide resolved
TestDerivs/src/test.cxx Outdated Show resolved Hide resolved
TestDerivs/src/test.cxx Show resolved Hide resolved
TestDerivs/src/test.cxx Show resolved Hide resolved
@lwJi
Copy link
Contributor Author

lwJi commented Oct 31, 2024

Hi @rhaas80, I think I have addressed all your comments in the recent few commits. please take another look. Thanks

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.

3 participants