Skip to content

Commit

Permalink
Two-stage GS: initialize functor bool members (#2420)
Browse files Browse the repository at this point in the history
Signed-off-by: Brian Kelley <[email protected]>
  • Loading branch information
brian-kelley authored Nov 6, 2024
1 parent 48b38fc commit fd452bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sparse/impl/KokkosSparse_twostage_gauss_seidel_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ class TwostageGaussSeidel {
struct TwostageGaussSeidel_functor {
public:
// input
bool two_stage;
bool compact_form;
bool diagos_given;
bool two_stage = false;
bool compact_form = false;
bool diagos_given = false;
const_ordinal_t num_rows;
input_row_map_view_t rowmap_view;
input_entries_view_t column_view;
Expand All @@ -143,7 +143,7 @@ class TwostageGaussSeidel {
output_entries_view_t entries_a2;
output_values_view_t values_a2;
// for computing residual norm with
bool forward_sweep;
bool forward_sweep = true;
internal_vector_view_t localX;
internal_vector_view_t localB;

Expand Down

0 comments on commit fd452bf

Please sign in to comment.