aboutsummaryrefslogtreecommitdiff
path: root/Source/Filter/NCIGodfreyFilter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Filter/NCIGodfreyFilter.cpp')
-rw-r--r--Source/Filter/NCIGodfreyFilter.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/Filter/NCIGodfreyFilter.cpp b/Source/Filter/NCIGodfreyFilter.cpp
index 8f4f14fb2..a4797dae3 100644
--- a/Source/Filter/NCIGodfreyFilter.cpp
+++ b/Source/Filter/NCIGodfreyFilter.cpp
@@ -33,14 +33,13 @@ NCIGodfreyFilter::NCIGodfreyFilter(godfrey_coeff_set coeff_set, amrex::Real cdto
void NCIGodfreyFilter::ComputeStencils(){
// Sanity checks: filter length shoulz be 5 in z
+#if (AMREX_SPACEDIM == 3)
AMREX_ALWAYS_ASSERT_WITH_MESSAGE(
-#if ( AMREX_SPACEDIM == 3 )
- slen.z==5,
+ slen.z==5,"ERROR: NCI filter requires 5 points in z");
#else
- slen.y==5,
+ AMREX_ALWAYS_ASSERT_WITH_MESSAGE(
+ slen.y==5,"ERROR: NCI filter requires 5 points in z");
#endif
- "ERROR: NCI filter requires 5 points in z");
-
// Interpolate coefficients from the table, and store into prestencil.
auto index = static_cast<int>(tab_length*m_cdtodz);
index = min(index, tab_length-2);