Skip to content

Commit

Permalink
restore previous ignore statement and remove static 1D call
Browse files Browse the repository at this point in the history
  • Loading branch information
RevathiJambunathan committed Nov 27, 2024
1 parent b472ed9 commit 22b38f8
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Src/LinearSolvers/MLMG/AMReX_MLCurlCurl_K.H
Original file line number Diff line number Diff line change
Expand Up @@ -203,17 +203,12 @@ 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 // NOLINT(readability-convert-member-functions-to-static)
{
#if (AMREX_SPACEDIM == 1)
return is_dirichlet_x_edge_1D(0, j, k);
amrex::ignore_unused(j, k);
return false;
#elif (AMREX_SPACEDIM == 2)
amrex::ignore_unused(k);
return (j == dirichlet_lo[1]) || (j == dirichlet_hi[1]);
Expand Down

0 comments on commit 22b38f8

Please sign in to comment.