Skip to content

Commit

Permalink
Fixing parthenon typos
Browse files Browse the repository at this point in the history
  • Loading branch information
HPC user committed Oct 12, 2023
1 parent 8a8ba8f commit 25e6b3d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions src/pgen/cluster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -735,9 +735,9 @@ void ProblemGenerator(Mesh *pmesh, ParameterInput *pin, MeshData<Real> *md) {

auto pmbb = md->GetBlockData(b)->GetBlockPointer(); // Meshblock b

const auto gis = pmbb->loc.lx1 * pmb->block_size.nx1;
const auto gjs = pmbb->loc.lx2 * pmb->block_size.nx2;
const auto gks = pmbb->loc.lx3 * pmb->block_size.nx3;
const auto gis = pmbb->loc.lx1() * pmb->block_size.nx1;
const auto gjs = pmbb->loc.lx2() * pmb->block_size.nx2;
const auto gks = pmbb->loc.lx3() * pmb->block_size.nx3;

const auto &coords = cons.GetCoords(b);
const auto &u = cons(b);
Expand Down Expand Up @@ -797,9 +797,9 @@ void ProblemGenerator(Mesh *pmesh, ParameterInput *pin, MeshData<Real> *md) {

auto pmbb = md->GetBlockData(b)->GetBlockPointer(); // Meshblock b

const auto gis = pmbb->loc.lx1 * pmb->block_size.nx1;
const auto gjs = pmbb->loc.lx2 * pmb->block_size.nx2;
const auto gks = pmbb->loc.lx3 * pmb->block_size.nx3;
const auto gis = pmbb->loc.lx1() * pmb->block_size.nx1;
const auto gjs = pmbb->loc.lx2() * pmb->block_size.nx2;
const auto gks = pmbb->loc.lx3() * pmb->block_size.nx3;

const auto &coords = cons.GetCoords(b);
const auto &u = cons(b);
Expand Down
12 changes: 6 additions & 6 deletions src/utils/few_modes_ft.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ void FewModesFT::SetPhases(MeshBlock *pmb, ParameterInput *pin) {
// below take the logical grid size into account. For example, the local phases at level
// 1 should be calculated assuming a grid that is twice as large as the root grid.
const auto root_level = pm->GetRootLevel();
auto gnx1 = pm->mesh_size.nx1 * std::pow(2, pmb->loc.level - root_level);
auto gnx2 = pm->mesh_size.nx2 * std::pow(2, pmb->loc.level - root_level);
auto gnx3 = pm->mesh_size.nx3 * std::pow(2, pmb->loc.level - root_level);
auto gnx1 = pm->mesh_size.nx1 * std::pow(2, pmb->loc.level() - root_level);
auto gnx2 = pm->mesh_size.nx2 * std::pow(2, pmb->loc.level() - root_level);
auto gnx3 = pm->mesh_size.nx3 * std::pow(2, pmb->loc.level() - root_level);

// Restriction should also be easily fixed, just need to double check transforms and
// volume weighting everywhere
Expand All @@ -130,9 +130,9 @@ void FewModesFT::SetPhases(MeshBlock *pmb, ParameterInput *pin) {
const auto nx2 = pmb->block_size.nx2;
const auto nx3 = pmb->block_size.nx3;

const auto gis = pmb->loc.lx1 * pmb->block_size.nx1;
const auto gjs = pmb->loc.lx2 * pmb->block_size.nx2;
const auto gks = pmb->loc.lx3 * pmb->block_size.nx3;
const auto gis = pmb->loc.lx1() * pmb->block_size.nx1;
const auto gjs = pmb->loc.lx2() * pmb->block_size.nx2;
const auto gks = pmb->loc.lx3() * pmb->block_size.nx3;

// make local ref to capure in lambda
const auto num_modes = num_modes_;
Expand Down
12 changes: 6 additions & 6 deletions src/utils/few_modes_ft_lognormal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ void FewModesFTLog::SetPhases(MeshBlock *pmb, ParameterInput *pin) {
// below take the logical grid size into account. For example, the local phases at level
// 1 should be calculated assuming a grid that is twice as large as the root grid.
const auto root_level = pm->GetRootLevel();
auto gnx1 = pm->mesh_size.nx1 * std::pow(2, pmb->loc.level - root_level); // Size of cell
auto gnx2 = pm->mesh_size.nx2 * std::pow(2, pmb->loc.level - root_level);
auto gnx3 = pm->mesh_size.nx3 * std::pow(2, pmb->loc.level - root_level);
auto gnx1 = pm->mesh_size.nx1 * std::pow(2, pmb->loc.level() - root_level); // Size of cell
auto gnx2 = pm->mesh_size.nx2 * std::pow(2, pmb->loc.level() - root_level);
auto gnx3 = pm->mesh_size.nx3 * std::pow(2, pmb->loc.level() - root_level);

// Restriction should also be easily fixed, just need to double check transforms and
// volume weighting everywhere
Expand All @@ -136,9 +136,9 @@ void FewModesFTLog::SetPhases(MeshBlock *pmb, ParameterInput *pin) {
const auto nx2 = pmb->block_size.nx2;
const auto nx3 = pmb->block_size.nx3;

const auto gis = pmb->loc.lx1 * pmb->block_size.nx1;
const auto gjs = pmb->loc.lx2 * pmb->block_size.nx2;
const auto gks = pmb->loc.lx3 * pmb->block_size.nx3;
const auto gis = pmb->loc.lx1() * pmb->block_size.nx1;
const auto gjs = pmb->loc.lx2() * pmb->block_size.nx2;
const auto gks = pmb->loc.lx3() * pmb->block_size.nx3;

// make local ref to capure in lambda
const auto num_modes = num_modes_;
Expand Down

0 comments on commit 25e6b3d

Please sign in to comment.