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]);