Skip to content

Commit

Permalink
Fix cppcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
pmatalon committed Jan 29, 2025
1 parent c144e23 commit 37936f5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
5 changes: 4 additions & 1 deletion include/samurai/mesh_interval.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ namespace samurai
interval_t i;
coord_type index;

MeshInterval() = default;
MeshInterval()
: level(0)
{
}

MeshInterval(std::size_t _level)
: level(_level)
Expand Down
9 changes: 6 additions & 3 deletions include/samurai/stencil.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,15 @@ namespace samurai
template <std::size_t stencil_size, std::size_t dim>
struct StencilAnalyzer
{
std::size_t origin_index;
bool has_origin = false;
std::size_t origin_index = 0;
bool has_origin = false;
std::array<bool, stencil_size> same_row_as_origin;
Stencil<stencil_size, dim> stencil;

StencilAnalyzer() = default;
StencilAnalyzer()
{
same_row_as_origin.fill(false);
}

StencilAnalyzer(const Stencil<stencil_size, dim>& stencil_)
: stencil(stencil_)
Expand Down

0 comments on commit 37936f5

Please sign in to comment.