Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
AstroBarker committed Jan 18, 2024
1 parent 0af88eb commit 5d8fbf1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/pgen/torus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,8 @@ void PostInitializationModifier(ParameterInput *pin, Mesh *pmesh) {
auto kb = pmb->cellbounds.GetBoundsK(IndexDomain::interior);

PackIndexMap imap;
std::vector<std::string> vars = {fluid_prim::bfield::name(), fluid_prim::density::name()};
std::vector<std::string> vars = {fluid_prim::bfield::name(),
fluid_prim::density::name()};
auto v = rc->PackVariables(vars, imap);
const int iblo = imap[fluid_prim::bfield::name()].first;
const int ibhi = imap[fluid_prim::bfield::name()].second;
Expand Down Expand Up @@ -684,7 +685,7 @@ void PostInitializationModifier(ParameterInput *pin, Mesh *pmesh) {
auto rng_gen = rng_pool.get_state();

z(n) = z_min + rng_gen.drand() * (z_max - z_min); // X3 trivial
id(n) = num_tracers_total * gid + n; // n_tracers * gid + n
id(n) = num_tracers_total * gid + n; // n_tracers * gid + n

Real lnh = -1.0;
Real uphi;
Expand Down
3 changes: 2 additions & 1 deletion src/tracers/tracers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ void FillTracers(MeshBlockData<Real> *rc) {

auto swarm_d = swarm->GetDeviceContext();

std::vector<std::string> vars = {p::density::name(), p::temperature::name(), p::velocity::name(), p::energy::name(),
std::vector<std::string> vars = {p::density::name(), p::temperature::name(),
p::velocity::name(), p::energy::name(),
p::pressure::name()};
if (mhd) {
vars.push_back(p::bfield::name());
Expand Down

0 comments on commit 5d8fbf1

Please sign in to comment.