Skip to content

Commit

Permalink
working around clang-tide warning for adding static method
Browse files Browse the repository at this point in the history
  • Loading branch information
RevathiJambunathan committed Nov 26, 2024
1 parent 5023695 commit 103dd4e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Src/LinearSolvers/MLMG/AMReX_MLCurlCurl_K.H
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 103dd4e

Please sign in to comment.