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

Enable p-refinement for ScalarWave executables #5573

Merged
merged 2 commits into from
Oct 23, 2023

Conversation

kidder
Copy link
Member

@kidder kidder commented Oct 18, 2023

Proposed changes

Enable p-refinement for ScalarWave executables.
Currently only works for global time-stepping.
Only the example input files for 1D actually do AMR during the evolution. See them if you want to use AMR in 2D or 3D.

Upgrade instructions

ScalarWave input files need to have additional options, as well as now using global time-steppers instead of local time-steppers. (See the diff of tests/InputFiles/ScalarWave/PlaneWave1D.yaml)

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

wthrowe
wthrowe previously approved these changes Oct 18, 2023
::ScalarWave::Tags::ConstraintGamma2>,
evolution::dg::Initialization::ProjectMortars<EvolutionMetavars>,
evolution::Actions::ProjectRunEventsAndDenseTriggers,
::amr::projectors::DefaultInitialize<
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 move some/all of these to the corresponding projectors? Would be easier if these are handled by the code that adds the tags, so you don't have to worry about them in the metavars.

Copy link
Member Author

Choose a reason for hiding this comment

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

I can, but will defer doing so until I implement the h-refinement overloads for the projectors as what is default initialized may change...

Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure I understand, the way these are handled might change with adding h-refinement, but moving the responsibility to the projectors (which live next to the initializer that adds the tag) already now seems easier than doing so later.

Copy link
Member Author

Choose a reason for hiding this comment

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

It is psychological; replacing 5 lines of code with multiple commits adding dozens of lines now seems a waste of my time. On the other hand, I can easily make the changes across multiple PRs when implementing h-refinement.

Copy link
Member

Choose a reason for hiding this comment

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

ok!

Copy link
Member

Choose a reason for hiding this comment

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

We have to add these to every executable though when we add support for AMR. If you prefer that fine with me, just checking.

Copy link
Member

Choose a reason for hiding this comment

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

Merging now, this can be done ina follow-up as well when adding AMR to more executables

Currently only works for global time stepping.
The 2D and 3D input files do not do any AMR, look at the 1D examples to
actually perform AMR.
@nilsvu nilsvu enabled auto-merge October 20, 2023 20:06
@kidder kidder disabled auto-merge October 23, 2023 15:00
@kidder kidder merged commit 83846a2 into sxs-collaboration:develop Oct 23, 2023
21 of 22 checks passed
@kidder kidder deleted the sw_p_refine_gts branch October 24, 2023 22:42
@kidder kidder mentioned this pull request Dec 8, 2023
3 tasks
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