Skip to content

Commit

Permalink
no nodiscard on samrai called functions
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasaunai committed Nov 7, 2023
1 parent b17389c commit 0c885ea
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/amr/data/field/coarsening/field_coarsen_operator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ namespace amr
* this return 0, meaning that this operator
* have the most priority
*/
NO_DISCARD int getOperatorPriority() const override { return 0; }
int getOperatorPriority() const override { return 0; }



Expand All @@ -68,8 +68,7 @@ namespace amr
* In our case, we allow a RF up to 10, so having 5 ghost width is sufficient
*
*/
NO_DISCARD SAMRAI::hier::IntVector
getStencilWidth(SAMRAI::tbox::Dimension const& dim) const override
SAMRAI::hier::IntVector getStencilWidth(SAMRAI::tbox::Dimension const& dim) const override
{
return SAMRAI::hier::IntVector{dim, 2};
}
Expand Down

0 comments on commit 0c885ea

Please sign in to comment.