From 103dd4e8b00843801fe9ad7e35ad2cd17456053f Mon Sep 17 00:00:00 2001 From: RevathiJambunathan Date: Tue, 26 Nov 2024 15:03:27 -0800 Subject: [PATCH] working around clang-tide warning for adding static method --- Src/LinearSolvers/MLMG/AMReX_MLCurlCurl_K.H | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Src/LinearSolvers/MLMG/AMReX_MLCurlCurl_K.H b/Src/LinearSolvers/MLMG/AMReX_MLCurlCurl_K.H index 341aa07104..1621d6ba77 100644 --- a/Src/LinearSolvers/MLMG/AMReX_MLCurlCurl_K.H +++ b/Src/LinearSolvers/MLMG/AMReX_MLCurlCurl_K.H @@ -203,12 +203,17 @@ struct CurlCurlDirichletInfo #endif } + [[nodiscard]] AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE + static bool is_dirichlet_x_edge_1D (int, int, int) + { + return false; + } + [[nodiscard]] AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE bool is_dirichlet_x_edge (int, int j, int k) const { #if (AMREX_SPACEDIM == 1) - amrex::ignore_unused(j, k); - return false; + return is_dirichlet_x_edge_1d(0, j, k); #elif (AMREX_SPACEDIM == 2) amrex::ignore_unused(k); return (j == dirichlet_lo[1]) || (j == dirichlet_hi[1]);