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

Add test for partial_derivatives with spherical harmonics #6421

Merged

Conversation

kidder
Copy link
Member

@kidder kidder commented Dec 18, 2024

Proposed changes

Add test for partial_derivatives with spherical harmonics

Upgrade instructions

Code review checklist

  • The code is documented and the documentation renders correctly. Run
    make doc to generate the documentation locally into BUILD_DIR/docs/html.
    Then open index.html.
  • The code follows the stylistic and code quality guidelines listed in the
    code review guide.
  • The PR lists upgrade instructions and is labeled bugfix or
    new feature if appropriate.

Further comments

Variables<
db::wrap_tags_in<Tags::deriv, GradientTags, tmpl::size_t<3>, Frame::Grid>>
expected_du(number_of_grid_points);
Approx local_approx = Approx::custom().epsilon(1e-9).scale(1.0);
Copy link
Member

Choose a reason for hiding this comment

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

Do you need to force the scale to 1 instead of just a relative error? Also, 1e-9 seems sort of large? Do you know why it's that large?

Copy link
Member Author

Choose a reason for hiding this comment

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

  • yes, because some of the derivs are zero.
  • because I copied it from the generic 3d test. I've updated it to 1e-13.

@kidder kidder force-pushed the spherical_derivative_test branch from 1da6a41 to f858d41 Compare December 20, 2024 18:09
@nilsdeppe nilsdeppe enabled auto-merge December 20, 2024 18:24
@nilsdeppe nilsdeppe merged commit 4176489 into sxs-collaboration:develop Dec 20, 2024
23 checks passed
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