Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahm-LANL committed Dec 6, 2023
1 parent b4985be commit 1c56446
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/analysis/history.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ Real ReduceJetEnergyFlux(MeshData<Real> *md) {
const Real xh = pars.Get<Real>("xh");

namespace p = fluid_prim;
const std::vector<std::string> vars({p::density::name(), p::bfield, p::velocity::name()});
const std::vector<std::string> vars(
{p::density::name(), p::bfield, p::velocity::name()});

PackIndexMap imap;
auto pack = md->PackVariables(vars, imap);
Expand Down Expand Up @@ -137,7 +138,8 @@ Real ReduceJetMomentumFlux(MeshData<Real> *md) {
const Real xh = pars.Get<Real>("xh");

namespace p = fluid_prim;
const std::vector<std::string> vars({p::density::name(), p::bfield, p::velocity::name()});
const std::vector<std::string> vars(
{p::density::name(), p::bfield, p::velocity::name()});

PackIndexMap imap;
auto pack = md->PackVariables(vars, imap);
Expand Down
2 changes: 1 addition & 1 deletion tst/unit/monopole_gr/test_interp_3d_to_1d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ TEST_CASE("Coordinates in spherical geometry", "[MonopoleGR]") {
GIVEN("A parthenon coords object tuned to spherical geometry") {
// TODO(JMM): This test is more of a sanity check than anything
ParameterInput pin;
RegionSize rs({0, 0, 0}, {100, M_PI, 2*M_PI}, {1, 1, 1}, {10, 1, 1});
RegionSize rs({0, 0, 0}, {100, M_PI, 2 * M_PI}, {1, 1, 1}, {10, 1, 1});
const Real dr_true = (rs.xmax(X1DIR) - rs.xmin(X1DIR)) / (rs.nx(X1DIR));
const Real dth_true = (rs.xmax(X2DIR) - rs.xmin(X2DIR)) / (rs.nx(X2DIR));
const Real dph_true = (rs.xmax(X3DIR) - rs.xmin(X3DIR)) / (rs.nx(X3DIR));
Expand Down

0 comments on commit 1c56446

Please sign in to comment.