From 5d8fbf1af45fc4688735632a5a730ebac55d656a Mon Sep 17 00:00:00 2001 From: Brandon Barker Date: Thu, 18 Jan 2024 13:22:57 -0700 Subject: [PATCH] fmt --- src/pgen/torus.cpp | 5 +++-- src/tracers/tracers.cpp | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/pgen/torus.cpp b/src/pgen/torus.cpp index 54574f37..c67869b8 100644 --- a/src/pgen/torus.cpp +++ b/src/pgen/torus.cpp @@ -616,7 +616,8 @@ void PostInitializationModifier(ParameterInput *pin, Mesh *pmesh) { auto kb = pmb->cellbounds.GetBoundsK(IndexDomain::interior); PackIndexMap imap; - std::vector vars = {fluid_prim::bfield::name(), fluid_prim::density::name()}; + std::vector 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; @@ -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; diff --git a/src/tracers/tracers.cpp b/src/tracers/tracers.cpp index 2a88506d..23091e42 100644 --- a/src/tracers/tracers.cpp +++ b/src/tracers/tracers.cpp @@ -194,7 +194,8 @@ void FillTracers(MeshBlockData *rc) { auto swarm_d = swarm->GetDeviceContext(); - std::vector vars = {p::density::name(), p::temperature::name(), p::velocity::name(), p::energy::name(), + std::vector vars = {p::density::name(), p::temperature::name(), + p::velocity::name(), p::energy::name(), p::pressure::name()}; if (mhd) { vars.push_back(p::bfield::name());