Skip to content

Conversation

@yoonso0-0
Copy link
Contributor

Proposed changes

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.

@yoonso0-0 yoonso0-0 force-pushed the ffe/exact_wald branch 4 times, most recently from 3f287ea to 6d8f000 Compare October 4, 2023 17:05
Copy link
Member

@wthrowe wthrowe left a comment

Choose a reason for hiding this comment

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

The other clang-tidy warning is legitimate.

namespace ForceFree::Solutions {

ExactWald::ExactWald(const double magnetic_field_amplitude,
const Options::Context& /*context*/)
Copy link
Member

Choose a reason for hiding this comment

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

[optional] If you don't use the context you can omit the argument and the option parser will figure out not to pass it.

p | magnetic_field_amplitude_;
}

PUP::able::PUP_ID ExactWald::my_PUP_ID = 0;
Copy link
Member

Choose a reason for hiding this comment

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

Just NOLINT this to make clang-tidy happy. We can't do anything about charm internals.

struct MagneticFieldAmplitude {
using type = double;
static constexpr Options::String help = {
"Amplitude of initial magnetic field along z axis."};
Copy link
Member

Choose a reason for hiding this comment

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

This is time-independent, so remove "initial".


/*!
* \brief An exact electrovacuum solution of Maxwell's equations in the Kerr
* spacetime found by Wald \cite Wald1974.
Copy link
Member

Choose a reason for hiding this comment

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

Kerr -> Schwarzschild? The paper is valid for arbitrary spin, but only the zero-spin case is implemented (and I take it that the spinning case isn't a solution to the force-free equations.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated the docs

* \brief Typelist of all analytic solutions of GRFFE evolution system
*/
using all_solutions = tmpl::list<AlfvenWave, FastWave>;
using all_solutions = tmpl::list<AlfvenWave, FastWave, ExactWald>;
Copy link
Member

Choose a reason for hiding this comment

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

Alphabetize.

const std::unique_ptr<InitialData> deserialized_base_ptr =
serialize_and_deserialize(base_ptr)->get_clone();
CHECK(dynamic_cast<const ExactWald&>(*deserialized_base_ptr.get()) ==
dynamic_cast<const ExactWald&>(*base_ptr.get()));
Copy link
Member

Choose a reason for hiding this comment

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

Remove .get() form these two lines.

@wthrowe
Copy link
Member

wthrowe commented Nov 8, 2023

Looks good. Squash.

@yoonso0-0 yoonso0-0 force-pushed the ffe/exact_wald branch 2 times, most recently from 5d6bdad to 57a6127 Compare November 8, 2023 22:23
@yoonso0-0
Copy link
Contributor Author

Squashed and rebased on develop. Thanks for review.

@wthrowe wthrowe merged commit c1d620a into sxs-collaboration:develop Nov 9, 2023
@yoonso0-0 yoonso0-0 deleted the ffe/exact_wald branch November 9, 2023 22:24
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