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

Fix shape map loaded from file #6395

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

nilsvu
Copy link
Member

@nilsvu nilsvu commented Dec 4, 2024

Proposed changes

The size of the domain didn't match the Strahlkorper in the file because the loaded l=0, m=0 coefficient was interpreted as a deformation/scale. Fixed by subtracting the size of the original sphere.

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

@nilsvu nilsvu requested a review from knelli2 December 4, 2024 21:57
Copy link
Contributor

@knelli2 knelli2 left a comment

Choose a reason for hiding this comment

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

Tests need an iterable approx. You can squash everything

Comment on lines 262 to 265
std::pair<std::array<DataVector, 3>, std::array<DataVector, 4>>
initial_shape_and_size_funcs(
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't reach with GitHub comments, but we should note somewhere in some help text that with this change, the deformed radius will be exactly what is in the YlmsFromFile, and not what is set for the inner/outer radius in the input file.

The size of the domain didn't match the Strahlkorper in the
file because the loaded l=0, m=0 coefficient was interpreted
as a deformation/scale. Fixed by subtracting the size of the
original sphere.
@nilsvu
Copy link
Member Author

nilsvu commented Dec 5, 2024

done

@knelli2 knelli2 added the bugfix label Dec 5, 2024
@knelli2 knelli2 merged commit 2844620 into sxs-collaboration:develop Dec 9, 2024
23 checks passed
@nilsvu nilsvu deleted the shape_from_file branch January 15, 2025 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants