rocsparseCPR.hpp
Go to the documentation of this file.
40class rocsparseCPR : public rocsparsePreconditioner<Scalar, block_size>, public CprCreation<Scalar, block_size>
51 std::vector<RocmMatrix<Scalar>> d_Amatrices, d_Rmatrices; // scalar matrices that represent the AMG hierarchy
53 std::vector<RocmVector<int>> d_PcolIndices; // prolongation does not need a full matrix, only store colIndices
Definition: BlockedMatrix.hpp:29 This class implements a Constrained Pressure Residual (CPR) preconditioner. Definition: CprCreation.hpp:39 This class implements a Constrained Pressure Residual (CPR) preconditioner. Definition: rocsparseCPR.hpp:41 void update_system_on_gpu(Scalar *vals, Scalar *b) override bool analyze_matrix(BlockedMatrix< Scalar > *mat, BlockedMatrix< Scalar > *jacMat) override bool analyze_matrix(BlockedMatrix< Scalar > *mat) override bool initialize(std::shared_ptr< BlockedMatrix< Scalar > > matrix, std::shared_ptr< BlockedMatrix< Scalar > > jacMatrix, rocsparse_int *d_Arows, rocsparse_int *d_Acols) override void apply(const Scalar &y, Scalar &x, WellContributions< Scalar > &wellContribs) override bool create_preconditioner(BlockedMatrix< Scalar > *mat, BlockedMatrix< Scalar > *jacMat) override void copy_system_to_gpu(Scalar *b) override rocsparseCPR(int verbosity) bool create_preconditioner(BlockedMatrix< Scalar > *mat) override Definition: rocsparsePreconditioner.hpp:34 std::shared_ptr< BlockedMatrix< Scalar > > jacMat Definition: rocsparsePreconditioner.hpp:53 Definition: WellContributions.hpp:51 Definition: amgclSolverBackend.hpp:44 |