From 1c6f1bf24513b4e56f640eea402fa8223ea1c667 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Mon, 1 May 2023 18:25:01 +0200 Subject: Use WARPX_ABORT_WITH_MESSAGE("msg") instead of amrex::Abort(Utils::TextMsg::Err("msg")) (#3879) * use WARPX_ABORT_WITH_MSG instead of amrex::Abort(Utils::TextMsg::Err(msg)) [WIP] * use WARPX_ABORT_WITH_MESSAGE * fix typo * fix missing parenthesis * remove spaces to prevent automatic text wrapping * remove wrong parenthesis --- Source/Filter/Filter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Source/Filter/Filter.cpp') diff --git a/Source/Filter/Filter.cpp b/Source/Filter/Filter.cpp index b0b67648e..f39e797f9 100644 --- a/Source/Filter/Filter.cpp +++ b/Source/Filter/Filter.cpp @@ -183,8 +183,8 @@ void Filter::DoFilter (const Box& tbx, dst(i,j,k,dcomp+n) = d; }); #else - amrex::Abort(Utils::TextMsg::Err( - "Filter not implemented for the current geometry!")); + WARPX_ABORT_WITH_MESSAGE( + "Filter not implemented for the current geometry!"); #endif } @@ -327,8 +327,8 @@ void Filter::DoFilter (const Box& tbx, dst(i,j,k,dcomp+n) += sss*(tmp(i-ix,j,k,scomp+n) +tmp(i+ix,j,k,scomp+n)); #else - amrex::Abort(Utils::TextMsg::Err( - "Filter not implemented for the current geometry!")); + WARPX_ABORT_WITH_MESSAGE( + "Filter not implemented for the current geometry!"); #endif } } -- cgit v1.2.3