Skip to content

Commit

Permalink
gmres: minor spacing and namespace fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nbeams committed Aug 8, 2024
1 parent adf30a2 commit 19e6841
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions core/solver/gmres.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ std::ostream& operator<<(std::ostream& stream, orthog_method orthog)
return stream;
}


} // namespace gmres


Expand Down Expand Up @@ -142,7 +143,7 @@ struct help_compute_norm {
}
};

namespace {

// Orthogonalization helper functions
template <typename ValueType, typename VectorType>
void orthogonalize_mgs(matrix::Dense<ValueType>* hessenberg_iter,
Expand All @@ -169,6 +170,7 @@ void orthogonalize_mgs(matrix::Dense<ValueType>* hessenberg_iter,
}
}


template <typename ValueType>
void finish_reduce(matrix::Dense<ValueType>* hessenberg_iter,
matrix::Dense<ValueType>* next_krylov,
Expand All @@ -177,6 +179,7 @@ void finish_reduce(matrix::Dense<ValueType>* hessenberg_iter,
return;
}


#if GINKGO_BUILD_MPI
template <typename ValueType>
void finish_reduce(matrix::Dense<ValueType>* hessenberg_iter,
Expand Down Expand Up @@ -208,6 +211,7 @@ void finish_reduce(matrix::Dense<ValueType>* hessenberg_iter,
}
#endif


template <typename ValueType, typename VectorType>
void orthogonalize_cgs(matrix::Dense<ValueType>* hessenberg_iter,
VectorType* krylov_bases, VectorType* next_krylov,
Expand Down Expand Up @@ -290,7 +294,7 @@ void orthogonalize_cgs2(matrix::Dense<ValueType>* hessenberg_iter,
// Add both Hessenberg columns
hessenberg_iter->add_scaled(one_op, hessenberg_aux_iter);
}
} // anonymous namespace


template <typename ValueType>
struct help_compute_norm<ValueType,
Expand All @@ -307,6 +311,7 @@ struct help_compute_norm<ValueType,
}
};


template <typename ValueType>
template <typename VectorType>
void Gmres<ValueType>::apply_dense_impl(const VectorType* dense_b,
Expand Down

0 comments on commit 19e6841

Please sign in to comment.