HYPRE_Int HYPRE_AMSConstructDiscreteGradient

(HYPRE_ParCSRMatrix A,
  HYPRE_ParVector x_coord,
  HYPRE_Int* edge_vertex,
  HYPRE_Int edge_orientation,
  HYPRE_ParCSRMatrix* G)

Construct and return the lowest-order discrete gradient matrix G using some edge and vertex information.

Documentation

Construct and return the lowest-order discrete gradient matrix G using some edge and vertex information. We assume that edge_vertex lists the edge vertices consecutively, and that the orientation of all edges is consistent.

If edge_orientation = 1, the edges are already oriented.

If edge_orientation = 2, the orientation of edge i depends only on the sign of edge_vertex[2*i+1] - edge_vertex[2*i].

Alphabetic index