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

Allow prolongation/restriction for shape FoT from vol file #6491

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

knelli2
Copy link
Contributor

@knelli2 knelli2 commented Feb 20, 2025

Proposed changes

Upgrade instructions

If you are reading the shape function of time from a volume H5 file, add LMax: Auto to the options. Auto here will choose the LMax from the volume H5 file, or if a number is specified, that number will be the new LMax and a prolongation/restriction of the volume H5 shape FoT will happen.

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 previously approved these changes Feb 20, 2025
const_cast<DataVector&>(gsl::at(shape_funcs, i)).data(), // NOLINT
gsl::at(shape_funcs, i).size());
// The centers and radii of the following don't matter. Only their l_max
// and their coefficients
Copy link
Member

Choose a reason for hiding this comment

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

Can you just create a YlmSpherepack object without the unused radius?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I had just copied other code. This new way is much cleaner.

@nilsvu nilsvu enabled auto-merge February 20, 2025 18:04
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