From ec5614334166fd5a8effbba3ea2e9e2099b5fdf1 Mon Sep 17 00:00:00 2001 From: Ben Ryan Date: Tue, 1 Oct 2024 14:44:23 -0600 Subject: [PATCH 1/2] Switch reference to copy --- example/particle_leapfrog/particle_leapfrog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/particle_leapfrog/particle_leapfrog.cpp b/example/particle_leapfrog/particle_leapfrog.cpp index abd71d531bdd..dc30d03f305a 100644 --- a/example/particle_leapfrog/particle_leapfrog.cpp +++ b/example/particle_leapfrog/particle_leapfrog.cpp @@ -148,7 +148,7 @@ void ProblemGenerator(MeshBlock *pmb, ParameterInput *pin) { const Real &y_max = pmb->coords.Xf<2>(jb.e + 1); const Real &z_max = pmb->coords.Xf<3>(kb.e + 1); - const auto &ic = particles_ic; + const auto ic = particles_ic; const bool no_particles = pin->GetOrAddBoolean("Particles", "disable", false); if (no_particles) return; From a03d3f6fed6ed6ea93bd246beb4133c5218f291d Mon Sep 17 00:00:00 2001 From: Ben Ryan Date: Tue, 1 Oct 2024 15:16:16 -0600 Subject: [PATCH 2/2] CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a7373b19036b..8a69281fe45f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Current develop ### Added (new features/APIs/variables/...) +- [[PR 1183]](https://github.com/parthenon-hpc-lab/parthenon/pull/1183) Fix particle leapfrog example initialization data - [[PR 1179]](https://github.com/parthenon-hpc-lab/parthenon/pull/1179) Make a global variable for whether simulation is a restart - [[PR 1171]](https://github.com/parthenon-hpc-lab/parthenon/pull/1171) Add PARTHENON_USE_SYSTEM_PACKAGES build option - [[PR 1161]](https://github.com/parthenon-hpc-lab/parthenon/pull/1161) Make flux field Metadata accessible, add Metadata::CellMemAligned flag, small perfomance upgrades