Skip to content

Commit fd452bf

Browse files
authored
Two-stage GS: initialize functor bool members (#2420)
Signed-off-by: Brian Kelley <[email protected]>
1 parent 48b38fc commit fd452bf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sparse/impl/KokkosSparse_twostage_gauss_seidel_impl.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ class TwostageGaussSeidel {
116116
struct TwostageGaussSeidel_functor {
117117
public:
118118
// input
119-
bool two_stage;
120-
bool compact_form;
121-
bool diagos_given;
119+
bool two_stage = false;
120+
bool compact_form = false;
121+
bool diagos_given = false;
122122
const_ordinal_t num_rows;
123123
input_row_map_view_t rowmap_view;
124124
input_entries_view_t column_view;
@@ -143,7 +143,7 @@ class TwostageGaussSeidel {
143143
output_entries_view_t entries_a2;
144144
output_values_view_t values_a2;
145145
// for computing residual norm with
146-
bool forward_sweep;
146+
bool forward_sweep = true;
147147
internal_vector_view_t localX;
148148
internal_vector_view_t localB;
149149

0 commit comments

Comments
 (0)