#include <StencilCollection.h>
Inheritance diagram for StencilCollection::

Public Methods | |
| StencilCollection () | |
| StencilCollection (int nsd, int nstencils, int ndofs) | |
| ~StencilCollection () | |
| void | redim (int nsd, int nstencils, int ndofs) |
| const VecSimplest(Handle(Stencil))& | operator() (int node_dof) const |
| VecSimplest(Handle(Stencil))& | operator() (int node_dof) |
| const Stencil& | getStencil (int stencil_no, int node_dof=1) const |
| Stencil& | getStencil (int stencil_no, int node_dof=1) |
| int | getNoStencils () |
| int | getNoNodeDofs () |
| void | insert (Stencil &stencil, int stencil_no, int node_dof, bool allocate=true) |
| void | print (Os os) |
| bool | ok () const |
Protected Attributes | |
| VecSimplest(VecSimplest(Handle(Stencil))) | stencils |
| Handle(Stencil_prm) | spm |
NAME: StencilCollection - collection of stencils
DESCRIPTION:
The class gives a simplified interface to a vector of stencils.
|
|
A specialized constructor takes the number of stencils and the number of degrees of freedom. An empty constructor is also offered, and this requires a call to the redim function taking the number of stencils and the number of degrees of freedom. (The number of stencils is same for all degrees of freedom.) |
|
|
|
|
|
|
|
|
|
|
|
returns the number of stencils for each degree of freedom. |
|
|
See documentation of one of the overloaded functions. |
|
|
returns the stencil in entry number 'stencil_no' for the given degree of freedom. |
|
|
inserts the given stencil in the entry corresponding to the given stencil number for the given node dof. Note that if the supplied stencil's own node_dof number has not been initialized, the node_dof number will be automatically set to the node dof that this stencil belongs to in the collection. In order to avoid confusion when automatically setting this value, the function will by default make a copy of the stencil for attachment in the collection instead of attaching the supplied stencil directly. One may set the allocation flag to false, leading to a direct attachment of the stencils, but this feature should only be used with great caution as the automatic initialization of the stencil's node dof value may cause problems. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|