19#include <psb_c_base.h>
22#ifdef DEAL_II_WITH_PSBLAS
35 Assert(communicator != MPI_COMM_NULL,
36 ExcMessage(
"MPI_COMM_NULL passed to SparseMatrix::reinit()."));
42 const std::vector<types::global_dof_index> &indexes =
45 psb_i_t number_of_local_indexes = indexes.size();
47 std::vector<psb_l_t> vl(number_of_local_indexes);
48 for (psb_i_t i = 0; i < number_of_local_indexes; ++i)
50 const auto psblas_index =
static_cast<psb_l_t
>(indexes[i]);
56 psb_c_cdall_vl(number_of_local_indexes,
73 template <
typename ForwardIterator>
77 ForwardIterator
begin,
79 const bool indices_are_sorted)
86 (void)indices_are_sorted;
87 psb_i_t nz =
static_cast<int>(
end -
begin);
88 std::vector<psb_l_t> ia(nz);
89 std::vector<psb_l_t> ja(nz);
91 for (
int k = 0; k < nz; ++k)
105 const bool indices_are_sorted)
125 "Error while finalizing SparsityPattern through psb_c_cdasb."));
std::vector< size_type > get_index_vector() const
static psb_c_ctxt * get_psblas_context()
virtual void resize(const size_type rows, const size_type cols)
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
#define AssertIntegerConversion(index1, index2)
static ::ExceptionBase & ExcCallingPSBLASFunction(int arg1, std::string arg2)
static ::ExceptionBase & ExcInsertionInPSBLASMatrix(int arg1)
#define Assert(cond, exc)
static ::ExceptionBase & ExcMessage(std::string arg1)