-
Notifications
You must be signed in to change notification settings - Fork 192
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
Conversation
::ScalarWave::Tags::ConstraintGamma2>, | ||
evolution::dg::Initialization::ProjectMortars<EvolutionMetavars>, | ||
evolution::Actions::ProjectRunEventsAndDenseTriggers, | ||
::amr::projectors::DefaultInitialize< |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok!
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
5bead83
to
fd25de7
Compare
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
make doc
to generate the documentation locally intoBUILD_DIR/docs/html
.Then open
index.html
.code review guide.
bugfix
ornew feature
if appropriate.Further comments