Skip to content

Commit

Permalink
Resolve a bug for the Batched GMRES with RightLayout
Browse files Browse the repository at this point in the history
  • Loading branch information
kliegeois committed Nov 16, 2021
1 parent 9ee4836 commit 21db7c1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/batched/sparse/KokkosBatched_CG.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@

/// \brief Batched CG: Selective Interface
///
/// \tparam OperatorType: The type of the opertator of the system
/// \tparam OperatorType: The type of the operator of the system
/// \tparam VectorViewType: Input type for the right-hand side and the solution,
/// needs to be a 2D view
///
/// \param member [in]: TeamPolicy member
/// \param A [in]: batched operator (can be a batched matrix or a (left or right
/// or both) preconditioned batched matrix) \param B [in]: right-hand side, a
/// rank 2 view \param X [in/out]: initial guess and solutin, a rank 2 view
/// rank 2 view \param X [in/out]: initial guess and solution, a rank 2 view
/// \param handle [in]: a handle which provides different information such as
/// the tolerance or the maximal number of iterations of the solver.

Expand Down
4 changes: 2 additions & 2 deletions src/batched/sparse/KokkosBatched_GMRES.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@

/// \brief Batched GMRES: Selective Interface
///
/// \tparam OperatorType: The type of the opertator of the system
/// \tparam OperatorType: The type of the operator of the system
/// \tparam VectorViewType: Input type for the right-hand side and the solution,
/// needs to be a 2D view
///
/// \param member [in]: TeamPolicy member
/// \param A [in]: batched operator (can be a batched matrix or a (left or right
/// or both) preconditioned batched matrix) \param B [in]: right-hand side, a
/// rank 2 view \param X [in/out]: initial guess and solutin, a rank 2 view
/// rank 2 view \param X [in/out]: initial guess and solution, a rank 2 view
/// \param handle [in]: a handle which provides different information such as
/// the tolerance or the maximal number of iterations of the solver.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ struct TeamVectorGMRES {
ScratchPadMultiVectorViewType Givens(member.team_scratch(1), numMatrices,
maximum_iteration, 2);
ScratchPadVectorViewType G(member.team_scratch(1), numMatrices,
maximum_iteration);
maximum_iteration + 1);

ScratchPadVectorViewType W(member.team_scratch(0), numMatrices, numRows);
ScratchPadVectorViewType Q(member.team_scratch(0), numMatrices, numRows);
Expand Down
2 changes: 1 addition & 1 deletion src/batched/sparse/impl/KokkosBatched_GMRES_Team_Impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ struct TeamGMRES {
ScratchPadMultiVectorViewType Givens(member.team_scratch(1), numMatrices,
maximum_iteration, 2);
ScratchPadVectorViewType G(member.team_scratch(1), numMatrices,
maximum_iteration);
maximum_iteration + 1);

ScratchPadVectorViewType W(member.team_scratch(0), numMatrices, numRows);
ScratchPadVectorViewType Q(member.team_scratch(0), numMatrices, numRows);
Expand Down

0 comments on commit 21db7c1

Please sign in to comment.