Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
BenWibking and github-actions[bot] authored Jan 23, 2024
1 parent c2dcf19 commit cc80d05
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/BinaryOrbitCIC/binary_orbit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ template <> void RadhydroSimulation<BinaryOrbit>::setInitialConditionsOnGrid(quo
const amrex::Array4<double> &state_cc = grid_elem.array_;

amrex::ParallelFor(indexRange, [=] AMREX_GPU_DEVICE(int i, int j, int k) {
double rho = 1.0e-22; // g cm^{-3}
double const rho = 1.0e-22; // g cm^{-3}
state_cc(i, j, k, HydroSystem<BinaryOrbit>::density_index) = rho;
state_cc(i, j, k, HydroSystem<BinaryOrbit>::x1Momentum_index) = 0;
state_cc(i, j, k, HydroSystem<BinaryOrbit>::x2Momentum_index) = 0;
Expand All @@ -64,7 +64,7 @@ template <> void RadhydroSimulation<BinaryOrbit>::createInitialParticles()
{
// read particles from ASCII file
const int nreal_extra = 4; // mass vx vy vz
CICParticles->SetVerbose(true);
CICParticles->SetVerbose(1);
CICParticles->InitFromAsciiFile("BinaryOrbit_particles.txt", nreal_extra, nullptr);
}

Expand Down Expand Up @@ -122,6 +122,6 @@ auto problem_main() -> int
// check orbital elements
// ...

int status = 0;
int const status = 0;
return status;
}

0 comments on commit cc80d05

Please sign in to comment.