Skip to content

Commit af8c930

Browse files
committed
debug output
1 parent 4b63902 commit af8c930

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

core/distributed/preconditioner/schwarz.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
#include "ginkgo/core/distributed/preconditioner/schwarz.hpp"
66

7+
#include <cmath>
78
#include <memory>
89

910
#include <ginkgo/core/base/exception_helpers.hpp>
@@ -232,6 +233,9 @@ void Schwarz<ValueType, LocalIndexType, GlobalIndexType>::generate(
232233
l1_diag->move_to(l1_diag_csr);
233234
l1_diag_csr->sort_by_column_index(); // spgeam requires sorting for
234235
// some backends
236+
if (std::isnan(real(l1_diag_csr->get_const_values()[0]))) { // DEBUG
237+
throw std::string("l1_diag_csr nan value after sorting");
238+
}
235239
auto id = matrix::Identity<ValueType>::create(
236240
exec, local_matrix->get_size()[0]);
237241
auto one = initialize<matrix::Dense<ValueType>>(

0 commit comments

Comments
 (0)