From 5f7da580cb1e440dc741c419a7edbedc9dc9cda3 Mon Sep 17 00:00:00 2001 From: Weiqun Zhang Date: Wed, 10 Apr 2024 10:32:24 -0700 Subject: [PATCH] ParticleContainer::WritePlotFile: Fix enable_if --- Src/Particle/AMReX_ParticleContainer.H | 4 ++-- Src/Particle/AMReX_ParticleIO.H | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Src/Particle/AMReX_ParticleContainer.H b/Src/Particle/AMReX_ParticleContainer.H index d3cc15adc4f..03a2254a10e 100644 --- a/Src/Particle/AMReX_ParticleContainer.H +++ b/Src/Particle/AMReX_ParticleContainer.H @@ -830,7 +830,7 @@ public: * \param name The name of the sub-directory for this particle type (i.e. "Tracer") * \param f callable that returns whether or not to write each particle */ - template &>>* = nullptr> + template , Vector>>* = nullptr> void WritePlotFile (const std::string& dir, const std::string& name, F&& f) const; /** @@ -887,7 +887,7 @@ public: * \param real_comp_names for each real component, a name to label the data with * \param f callable that returns whether or not to write each particle */ - template >>* = nullptr> + template , Vector>>* = nullptr> void WritePlotFile (const std::string& dir, const std::string& name, const Vector& real_comp_names, F&& f) const; diff --git a/Src/Particle/AMReX_ParticleIO.H b/Src/Particle/AMReX_ParticleIO.H index 4a9d446efa7..77a2c0cf992 100644 --- a/Src/Particle/AMReX_ParticleIO.H +++ b/Src/Particle/AMReX_ParticleIO.H @@ -252,7 +252,7 @@ WritePlotFile (const std::string& dir, const std::string& name, template class Allocator, class CellAssignor> -template &>>*> +template , Vector>>*> void ParticleContainer_impl ::WritePlotFile (const std::string& dir, const std::string& name, F&& f) const @@ -319,7 +319,7 @@ ParticleContainer_impl class Allocator, class CellAssignor> -template >>*> +template , Vector>>*> void ParticleContainer_impl ::WritePlotFile (const std::string& dir, const std::string& name,