From 5f173246296d7ad6a731f71b9feff0b0c020cf5f Mon Sep 17 00:00:00 2001 From: Maxence Thevenet Date: Thu, 9 Aug 2018 18:39:22 -0700 Subject: error message when using back-transformed diags without compilation flag STORE_OLD_PARTICLE_ATTRIBS=TRUE --- Source/PhysicalParticleContainer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source/PhysicalParticleContainer.cpp') diff --git a/Source/PhysicalParticleContainer.cpp b/Source/PhysicalParticleContainer.cpp index 2e4ff73ba..3e26097f0 100644 --- a/Source/PhysicalParticleContainer.cpp +++ b/Source/PhysicalParticleContainer.cpp @@ -1290,6 +1290,7 @@ void PhysicalParticleContainer::GetParticleSlice(const int direction, const Real } } #else - AMREX_ALWAYS_ASSERT(false); + AMREX_ALWAYS_ASSERT_WITH_MESSAGE( false , +"ERROR: WarpX must be compiled with STORE_OLD_PARTICLE_ATTRIBS=TRUE to use the back-transformed diagnostics"); #endif } -- cgit v1.2.3