d06ccf uses a Gibbs method to renumber the vertices of a given mesh in order to reduce the bandwidth of the associated finite element matrix
. This matrix has elements
such that:
This routine reduces the bandwidth
, which is the smallest integer such that
whenever
(see
Gibbs et al. (1976) for details about that method).
d06ccf also returns the sparsity structure of the matrix associated with the renumbered mesh.
This routine is derived from material in the MODULEF package from INRIA (Institut National de Recherche en Informatique et Automatique).
Gibbs N E, Poole W G Jr and Stockmeyer P K (1976) An algorithm for reducing the bandwidth and profile of a sparse matrix SIAM J. Numer. Anal. 13 236–250
- 1: – IntegerInput
-
On entry: the total number of vertices in the input mesh.
Constraint:
.
- 2: – IntegerInput
-
On entry: the number of triangles in the input mesh.
Constraint:
.
- 3: – IntegerInput
-
On entry: the number of boundary edges in the input mesh.
Constraint:
.
- 4: – IntegerInput
-
On entry: the maximum number of nonzero entries in the matrix based on the input mesh. It is the dimension of the arrays
irow and
icol as declared in the subroutine from which
d06ccf is called.
Constraint:
.
- 5: – IntegerOutput
-
On exit: the number of nonzero entries in the matrix based on the input mesh.
- 6: – Real (Kind=nag_wp) arrayInput/Output
-
On entry: contains the coordinate of the th input mesh vertex, for ; while contains the corresponding coordinate.
On exit: will contain the coordinate of the th renumbered mesh vertex, for ; while will contain the corresponding coordinate.
- 7: – Integer arrayInput/Output
-
On entry: the specification of the boundary or interface edges. and contain the vertex numbers of the two end points of the th boundary edge. is a user-supplied tag for the th boundary or interface edge: for an interior edge and has a nonzero tag otherwise.
Constraint:
and , for and .
On exit: the renumbered specification of the boundary or interface edges.
- 8: – Integer arrayInput/Output
-
On entry: the connectivity of the mesh between triangles and vertices. For each triangle
, gives the indices of its three vertices (in anticlockwise order), for and .
Constraint:
and and and , for and .
On exit: the renumbered connectivity of the mesh between triangles and vertices.
- 9: – Integer arrayOutput
- 10: – Integer arrayOutput
-
On exit: the first
nnz elements contain the row and column indices of the nonzero elements supplied in the finite element matrix
.
- 11: – IntegerInput
-
On entry: the level of trace information required from
d06ccf.
- No output is generated.
- Information about the effect of the renumbering on the finite element matrix are output. This information includes the half bandwidth and the sparsity structure of this matrix before and after renumbering.
- The output is similar to that produced when but the sparsities (for each row of the matrix, indices of nonzero entries) of the matrix before and after renumbering are also output.
- 12: – Integer arrayWorkspace
- 13: – IntegerInput
-
On entry: the dimension of the array
iwork as declared in the (sub)program from which
d06ccf is called.
Constraint:
.
- 14: – Real (Kind=nag_wp) arrayWorkspace
- 15: – IntegerInput
-
On entry: the dimension of the array
rwork as declared in the (sub)program from which
d06ccf is called.
Constraint:
.
- 16: – IntegerInput/Output
-
On entry:
ifail must be set to
,
. If you are unfamiliar with this argument you should refer to
Section 3.4 in How to Use the NAG Library and its Documentation for details.
For environments where it might be inappropriate to halt program execution when an error is detected, the value
is recommended. If the output of error messages is undesirable, then the value
is recommended. Otherwise, if you are not familiar with this argument, the recommended value is
.
When the value is used it is essential to test the value of ifail on exit.
On exit:
unless the routine detects an error or a warning has been flagged (see
Section 6).
If on entry
or
, explanatory error messages are output on the current error message unit (as defined by
x04aaf).
Not applicable.
Please consult the
X06 Chapter Introduction for information on how to control and interrogate the OpenMP environment used within this routine. Please also consult the
Users' Note for your implementation for any additional implementation-specific information.
None.
In this example, a geometry with two holes (two interior circles inside an exterior one) is considered. The geometry has been meshed using the simple incremental method (
d06aaf) and it has
vertices and
triangles (see Figure 1 in
Section 10.3). The routine
d06baf is used to renumber the vertices, and one can see the benefit in terms of the sparsity of the finite element matrix based on the renumbered mesh (see Figure 2 and 3 in
Section 10.3).
None.