nag_mesh2d_sparse (d06cbc) generates the sparsity pattern of a finite element matrix associated with a given mesh.
nag_mesh2d_sparse (d06cbc) generates the sparsity pattern of a finite element matrix associated with a given mesh. The sparsity pattern is returned in a coordinate storage format consistent with the sparse linear algebra functions in
Chapter f11. More precisely nag_mesh2d_sparse (d06cbc) returns the number of nonzero elements in the associated sparse matrix, and their row and column indices. This is designed to assist you in applying finite element discretization to meshes from the
d06 Chapter Introduction and in solving the resulting sparse linear system using functions from
Chapter f11.
The output sparsity pattern is based on the fact that finite element matrix
has elements
satisfying:
None.
- NE_BAD_PARAM
On entry, argument had an illegal value.
- NE_INT
On entry, .
Constraint: .
- NE_INT_2
On entry, and .
Constraint: .
On entry, and .
Constraint: .
On entry, vertices and of the triangle have the same index : and .
On entry, vertices and of the triangle have the same index : and .
On entry, vertices and of the triangle have the same index : and .
- NE_INT_3
On entry, , and .
Constraint: .
- NE_INT_4
On entry, , , and .
Constraint: and , where denotes .
- NE_INTERNAL_ERROR
An internal error has occurred in this function. Check the function call and any array sizes. If the call is correct then please contact
NAG for assistance.
A serious error has occurred in an internal call to an auxiliary function. Check the input mesh especially the connectivity. Seek expert help.
Not applicable.
Not applicable.
See
Section 9 in nag_mesh2d_renum (d06ccc).