#include <Poisson2dOperator.h>
Inheritance diagram for Poisson2dOperator:
Constructors. | |
| Poisson2dOperator (int nx, int ny, const Epetra_Comm &comm) | |
| Builds a 2 dimensional Poisson operator for a nx by ny grid, assuming zero Dirichlet BCs. | |
Destructor. | |
| ~Poisson2dOperator () | |
| Destructor. | |
Atribute set methods. | |
| int | SetUseTranspose (bool UseTranspose) |
| If set true, transpose of this operator will be applied. | |
Mathematical functions. | |
| int | Apply (const Epetra_MultiVector &X, Epetra_MultiVector &Y) const |
| Returns the result of a Poisson2dOperator applied to a Epetra_MultiVector X in Y. | |
| int | ApplyInverse (const Epetra_MultiVector &X, Epetra_MultiVector &Y) const |
| Returns the result of a Poisson2dOperator inverse applied to an Epetra_MultiVector X in Y. | |
| double | NormInf () const |
| Returns the infinity norm of the global matrix. | |
Atribute access functions | |
| const char * | Label () const |
| Returns a character string describing the operator. | |
| bool | UseTranspose () const |
| Returns the current UseTranspose setting. | |
| bool | HasNormInf () const |
| Returns true if the this object can provide an approximate Inf-norm, false otherwise. | |
| const Epetra_Comm & | Comm () const |
| Returns a pointer to the Epetra_Comm communicator associated with this operator. | |
| const Epetra_Map & | OperatorDomainMap () const |
| Returns the Epetra_Map object associated with the domain of this operator. | |
| const Epetra_Map & | OperatorRangeMap () const |
| Returns the Epetra_Map object associated with the range of this operator. | |
Approximate matrix generators | |
| Epetra_CrsMatrix * | GeneratePrecMatrix () const |
| Generate a tridiagonal approximation to the 5-point Poisson as an Epetra_CrsMatrix. | |
Public Attributes | |
| int | nx_ |
| int | ny_ |
| int | myny_ |
| bool | useTranspose_ |
| const Epetra_Comm & | comm_ |
| Epetra_Map * | map_ |
| int | numImports_ |
| int * | importIDs_ |
| Epetra_Map * | importMap_ |
| Epetra_Import * | importer_ |
| Epetra_MultiVector * | importX_ |
| char * | Label_ |
The Poisson2dOperator class is a class that implements Epetra_Operator for a 5-point Poisson stencil operator.
Definition at line 46 of file Poisson2dOperator.h.
|
||||||||||||||||
|
Builds a 2 dimensional Poisson operator for a nx by ny grid, assuming zero Dirichlet BCs. Build a 2 D Poisson operator. Split the y-dimension across the processor space.
Definition at line 39 of file Poisson2dOperator.cpp. |
|
|
Destructor.
Definition at line 94 of file Poisson2dOperator.cpp. |
|
|
If set true, transpose of this operator will be applied. This flag allows the transpose of the given operator to be used implicitly. Setting this flag affects only the Apply() and ApplyInverse() methods. If the implementation of this interface does not support transpose use, this method should return a value of -1.
Implements Epetra_Operator. Definition at line 74 of file Poisson2dOperator.h. |
|
||||||||||||
|
Returns the result of a Poisson2dOperator applied to a Epetra_MultiVector X in Y.
Implements Epetra_Operator. Definition at line 102 of file Poisson2dOperator.cpp. |
|
||||||||||||
|
Returns the result of a Poisson2dOperator inverse applied to an Epetra_MultiVector X in Y.
Implements Epetra_Operator. Definition at line 102 of file Poisson2dOperator.h. |
|
|
Returns the infinity norm of the global matrix.
Implements Epetra_Operator. Definition at line 110 of file Poisson2dOperator.h. |
|
|
Returns a character string describing the operator.
Implements Epetra_Operator. Definition at line 116 of file Poisson2dOperator.h. |
|
|
Returns the current UseTranspose setting.
Implements Epetra_Operator. Definition at line 119 of file Poisson2dOperator.h. |
|
|
Returns true if the this object can provide an approximate Inf-norm, false otherwise.
Implements Epetra_Operator. Definition at line 122 of file Poisson2dOperator.h. |
|
|
Returns a pointer to the Epetra_Comm communicator associated with this operator.
Implements Epetra_Operator. Definition at line 125 of file Poisson2dOperator.h. |
|
|
Returns the Epetra_Map object associated with the domain of this operator.
Implements Epetra_Operator. Definition at line 128 of file Poisson2dOperator.h. |
|
|
Returns the Epetra_Map object associated with the range of this operator.
Implements Epetra_Operator. Definition at line 131 of file Poisson2dOperator.h. |
|
|
Generate a tridiagonal approximation to the 5-point Poisson as an Epetra_CrsMatrix.
Definition at line 182 of file Poisson2dOperator.cpp. |
|
|
Definition at line 141 of file Poisson2dOperator.h. |
|
|
Definition at line 141 of file Poisson2dOperator.h. |
|
|
Definition at line 141 of file Poisson2dOperator.h. |
|
|
Definition at line 142 of file Poisson2dOperator.h. |
|
|
Definition at line 143 of file Poisson2dOperator.h. |
|
|
Definition at line 144 of file Poisson2dOperator.h. |
|
|
Definition at line 145 of file Poisson2dOperator.h. |
|
|
Definition at line 146 of file Poisson2dOperator.h. |
|
|
Definition at line 147 of file Poisson2dOperator.h. |
|
|
Definition at line 148 of file Poisson2dOperator.h. |
|
|
Definition at line 149 of file Poisson2dOperator.h. |
|
|
Definition at line 150 of file Poisson2dOperator.h. |
1.3.9.1