Skip to content

Commit

Permalink
Fix interface
Browse files Browse the repository at this point in the history
  • Loading branch information
pgrete committed Sep 9, 2024
1 parent b4e65f7 commit 4e4581a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/pgen/turbulence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,9 @@ void ProblemGenerator(Mesh *pmesh, ParameterInput *pin, MeshData<Real> *md) {
// Create new particles and get accessor
auto new_particles_context = swarm->AddEmptyParticles(num_tracers_per_block);

auto &x = swarm->Get<Real>("x").Get();
auto &y = swarm->Get<Real>("y").Get();
auto &z = swarm->Get<Real>("z").Get();
auto &x = swarm->Get<Real>(swarm_position::x::name()).Get();
auto &y = swarm->Get<Real>(swarm_position::y::name()).Get();
auto &z = swarm->Get<Real>(swarm_position::z::name()).Get();
auto &id = swarm->Get<int>("id").Get();

auto swarm_d = swarm->GetDeviceContext();
Expand Down
12 changes: 6 additions & 6 deletions src/tracers/tracers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ TaskStatus AdvectTracers(MeshBlockData<Real> *mbd, const Real dt) {
auto &sd = pmb->swarm_data.Get();
auto &swarm = sd->Get("tracers");

auto &x = swarm->Get<Real>("x").Get();
auto &y = swarm->Get<Real>("y").Get();
auto &z = swarm->Get<Real>("z").Get();
auto &x = swarm->Get<Real>(swarm_position::x::name()).Get();
auto &y = swarm->Get<Real>(swarm_position::y::name()).Get();
auto &z = swarm->Get<Real>(swarm_position::z::name()).Get();
auto &vel_x = swarm->Get<Real>("vel_x").Get();
auto &vel_y = swarm->Get<Real>("vel_y").Get();
auto &vel_z = swarm->Get<Real>("vel_z").Get();
Expand Down Expand Up @@ -212,9 +212,9 @@ TaskStatus FillTracers(MeshData<Real> *md, parthenon::SimTime &tm) {

// TODO(pgrete) cleanup once get swarm packs (currently in development upstream)
// pull swarm vars
auto &x = swarm->Get<Real>("x").Get();
auto &y = swarm->Get<Real>("y").Get();
auto &z = swarm->Get<Real>("z").Get();
auto &x = swarm->Get<Real>(swarm_position::x::name()).Get();
auto &y = swarm->Get<Real>(swarm_position::y::name()).Get();
auto &z = swarm->Get<Real>(swarm_position::z::name()).Get();
auto &vel_x = swarm->Get<Real>("vel_x").Get();
auto &vel_y = swarm->Get<Real>("vel_y").Get();
auto &vel_z = swarm->Get<Real>("vel_z").Get();
Expand Down

0 comments on commit 4e4581a

Please sign in to comment.