From a6ab833e3cc6abc1f8b037bfb6c0b360547a40e2 Mon Sep 17 00:00:00 2001 From: Sherwood Richers Date: Mon, 15 Sep 2025 20:29:05 -0400 Subject: [PATCH 1/2] add dummy argument to CreateLike for particlecontainers to match the signature for multifabs --- Src/Base/AMReX_IntegratorBase.H | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Base/AMReX_IntegratorBase.H b/Src/Base/AMReX_IntegratorBase.H index 64ef4256a0c..de36b3359dd 100644 --- a/Src/Base/AMReX_IntegratorBase.H +++ b/Src/Base/AMReX_IntegratorBase.H @@ -22,7 +22,7 @@ template struct IntegratorOps > > { - static void CreateLike (amrex::Vector >& V, const T& Other) + static void CreateLike (amrex::Vector >& V, const T& Other, bool dummy = false) { // Emplace a new T in V with the same size as Other and get a reference V.emplace_back(std::make_unique(Other.Geom(0), Other.ParticleDistributionMap(0), Other.ParticleBoxArray(0))); From c073212d4e805cd641c058087ad711c657134f09 Mon Sep 17 00:00:00 2001 From: Sherwood Richers Date: Tue, 16 Sep 2025 09:24:19 -0400 Subject: [PATCH 2/2] comment out variable name to avoid unused parameter warnings --- Src/Base/AMReX_IntegratorBase.H | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Base/AMReX_IntegratorBase.H b/Src/Base/AMReX_IntegratorBase.H index de36b3359dd..b7d3d424819 100644 --- a/Src/Base/AMReX_IntegratorBase.H +++ b/Src/Base/AMReX_IntegratorBase.H @@ -22,7 +22,7 @@ template struct IntegratorOps > > { - static void CreateLike (amrex::Vector >& V, const T& Other, bool dummy = false) + static void CreateLike (amrex::Vector >& V, const T& Other, bool /*dummy*/ = false) { // Emplace a new T in V with the same size as Other and get a reference V.emplace_back(std::make_unique(Other.Geom(0), Other.ParticleDistributionMap(0), Other.ParticleBoxArray(0)));