Skip to content

Commit

Permalink
Merge branch 'BenWibking/cic-particles' of github.com:quokka-astro/qu…
Browse files Browse the repository at this point in the history
…okka into BenWibking/cic-particles
  • Loading branch information
BenWibking committed Jan 24, 2024
2 parents 53f98fc + cc80d05 commit 8dc727e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 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 @@ -111,8 +111,8 @@ auto problem_main() -> int
// Problem initialization
RadhydroSimulation<BinaryOrbit> sim(BCs_cc);
sim.doPoissonSolve_ = 1; // enable self-gravity
sim.initDt_ = 1.0e3; // s
sim.initDt_ = 1.0e3; // s

// initialize
sim.setInitialConditions();

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

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

0 comments on commit 8dc727e

Please sign in to comment.