12 #include "../config/config.hpp"
42 double loc_energy, glob_energy;
46 MPI_Allreduce(&loc_energy, &glob_energy, 1, MPI_DOUBLE, MPI_SUM,
int Size() const
Logical size of the array.
HYPRE_Int * GetDofOffsets()
Abstract parallel finite element space.
static void Sum(OpData< T >)
Reduce operation Sum, instantiated for int and double.
HypreParMatrix * RAP(HypreParMatrix *A, HypreParMatrix *P)
Returns the matrix P^t * A * P.
int GetLocalTDofNumber(int ldof)
HypreParMatrix * Dof_TrueDof_Matrix()
The true dof-to-dof interpolation matrix.
GroupCommunicator & GroupComm()
Return a reference to the internal GroupCommunicator (on VDofs)
void Distribute(const Vector *tv)
void Reduce(T *ldata, void(*Op)(OpData< T >))
Class for parallel grid function.
Wrapper for hypre's ParCSR matrix class.