20 #ifndef LIBMESH_METIS_CSR_GRAPH_H 21 #define LIBMESH_METIS_CSR_GRAPH_H 42 template <
class IndexType>
55 libmesh_assert_less (row+1,
offsets.size());
65 libmesh_assert_less (row+1,
offsets.size());
76 libmesh_assert (!
offsets.empty());
89 libmesh_assert_greater (
vals.size(),
offsets[row]+nonzero);
100 libmesh_assert_greater (
vals.size(),
offsets[row]+nonzero);
108 #endif // LIBMESH_METIS_CSR_GRAPH_H IndexType & operator()(const libMesh::dof_id_type row, const libMesh::dof_id_type nonzero)
Compressed graph data structure used by MetisPartitioner.
const IndexType & operator()(const libMesh::dof_id_type row, const libMesh::dof_id_type nonzero) const
libMesh::dof_id_type n_nonzeros(const libMesh::dof_id_type row) const
std::vector< IndexType > offsets
std::vector< IndexType > vals
void prep_n_nonzeros(const libMesh::dof_id_type row, const libMesh::dof_id_type n_nonzeros_in)