35#ifndef NEKTAR_LIB_UTILITIES_COMMUNICATION_XXT_HPP
36#define NEKTAR_LIB_UTILITIES_COMMUNICATION_XXT_HPP
132 unsigned int nz,
const unsigned int *Ai,
133 const unsigned int *Aj,
const double *
A,
134 unsigned int null_space,
166 unsigned int nz = pAr.size();
168 std::dynamic_pointer_cast<LibUtilities::CommMpi>(pComm);
169 ASSERTL1(vCommMpi,
"Failed to cast MPI Comm object.");
171 MPI_Comm_dup(vCommMpi->GetComm(), &vComm.
c);
172 vComm.
id = vCommMpi->GetRank();
173 vComm.
np = vCommMpi->GetSize();
176 MPI_Comm_free(&vComm.
c);
206 MPI_Finalized(&finalized);
207 if (pCrs && !finalized)
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode....
std::shared_ptr< CommMpi > CommMpiSharedPtr
Pointer to a Communicator object.
std::shared_ptr< Comm > CommSharedPtr
Pointer to a Communicator object.
void nektar_crs_stats(struct crs_data *data)
static struct crs_data * Init(unsigned int pRank, const Nektar::Array< OneD, unsigned long > pId, const Nektar::Array< OneD, unsigned int > pAi, const Nektar::Array< OneD, unsigned int > pAj, const Nektar::Array< OneD, NekDouble > pAr, const LibUtilities::CommSharedPtr &pComm)
Initialise the matrix-solve.
static void Finalise(crs_data *pCrs)
Deallocates the crs mapping data.
void nektar_crs_free(struct crs_data *data)
struct crs_data * nektar_crs_setup(unsigned int n, const unsigned long *id, unsigned int nz, const unsigned int *Ai, const unsigned int *Aj, const double *A, unsigned int null_space, const struct comm *comm)
static void Solve(Nektar::Array< OneD, NekDouble > pX, struct crs_data *pCrs, Nektar::Array< OneD, NekDouble > pB)
Solve the matrix system for a given input vector b.
void nektar_crs_solve(double *x, struct crs_data *data, double *b)
struct sparse_cholesky fac_A_ll