Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yanjen committed Feb 13, 2023
1 parent cb252bd commit 6d1647a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/solver/gcr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,9 @@ template <typename ValueType>
void Gcr<ValueType>::apply_impl(const LinOp* alpha, const LinOp* b,
const LinOp* beta, LinOp* x) const
{
if (!this->get_system_matrix()) {
return;
}
precision_dispatch_real_complex<ValueType>(
[this](auto dense_alpha, auto dense_b, auto dense_beta, auto dense_x) {
auto x_clone = dense_x->clone();
Expand Down

0 comments on commit 6d1647a

Please sign in to comment.