Skip to content

Conversation

@MarloMo
Copy link
Contributor

@MarloMo MarloMo commented Oct 5, 2021

Proposed changes

Adding the Ricci scalar compute tags to EvolveGeneralizedHarmonic.hpp that computes the Min and Max Ricci scalar of a Strahlkorper. This PR also adds arguments tags that are dependent on calculating the Ricci scalar quantities.

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

@MarloMo MarloMo requested a review from geoffrey4444 October 5, 2021 16:39
geoffrey4444
geoffrey4444 previously approved these changes Oct 8, 2021
nilsvu
nilsvu previously approved these changes Oct 10, 2021
@nilsvu nilsvu requested a review from markscheel October 10, 2021 08:57
@nilsvu
Copy link
Member

nilsvu commented Oct 10, 2021

@markscheel could you take an expert-look at this one? :)

Comment on lines 114 to 116
GeneralizedHarmonic::Tags::Phi<volume_dim, frame>,
Tags::deriv<GeneralizedHarmonic::Tags::Phi<volume_dim, frame>,
tmpl::size_t<3>, frame>>;
Copy link
Contributor

@markscheel markscheel Oct 20, 2021

Choose a reason for hiding this comment

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

(edited) Earlier I thought this Tag should go away, but I see now that it should remain. I was confused about the frame. Note that this will only work if frame is Frame::Inertial.

I think everything in this type alias should have Frame::Inertial, even if the horizon is found in a different frame.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good, so I'm okay to leave this as is? I tried to compile without it but I kept getting an error that said it was required if I was trying to call the Ricci scalar tag.

Copy link
Contributor

@markscheel markscheel Oct 26, 2021

Choose a reason for hiding this comment

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

Yes, please leave this as is, except please change frame to Frame::Inertial in interpolator_source_vars. Let me know if you get an error if you do that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay, that compiled

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why wouldn't the tag work for other frames? @markscheel

StrahlkorperTags::ExtrinsicCurvatureCompute<frame>,
StrahlkorperGr::Tags::SpinFunctionCompute<frame>>,
StrahlkorperGr::Tags::SpinFunctionCompute<frame>,
StrahlkorperTags::RicciScalarCompute<frame>>,
Copy link
Contributor

@markscheel markscheel Oct 20, 2021

Choose a reason for hiding this comment

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

(edited) This looks ok. This is the function that computes the (2D) Ricci scalar of the Strahlkorper, right? Not the (3D) Ricci scalar of the volume.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure. @geoffrey4444, would you be able to clarify if this computes (2D) or (3D)?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, it's 2D

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, sounds good.

@markscheel
Copy link
Contributor

@MarloMo I took another look at this; I was confused by names and frames. Just one thing, which is changing everything to Inertial in interpolator_source_vars.

@MarloMo MarloMo dismissed stale reviews from nilsvu and geoffrey4444 via e54bcad October 27, 2021 15:35
markscheel
markscheel previously approved these changes Oct 27, 2021
Copy link
Contributor

@markscheel markscheel left a comment

Choose a reason for hiding this comment

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

Please squash.

@MarloMo MarloMo requested a review from nilsvu October 28, 2021 23:33
@nilsvu nilsvu merged commit 02e2352 into sxs-collaboration:develop Oct 29, 2021
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.

4 participants