int HYPRE_AMSConstructDiscreteGradient

(HYPRE_ParCSRMatrix A,
  HYPRE_ParVector x_coord,
  int* edge_vertex,
  HYPRE_ParCSRMatrix* G)

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

Documentation

Construct and return the 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 edge i depends only on the sign of edge_vertex[2*i+1] - edge_vertex[2*i].

Alphabetic index