|
NOX Development
|
Shared Jacobian for NOX::Petsc::Group objects. More...
#include <NOX_Petsc_SharedJacobian.H>

Public Member Functions | |
| SharedJacobian (Mat &j) | |
| Constructor. | |
| SharedJacobian (Mat &j, Mat &p) | |
| Constructor with separate Matrices for the Jacobian and preconditioner. | |
| ~SharedJacobian () | |
| Destructor. | |
| Mat & | getJacobian (const Group *newowner) |
| Get a reference to the Jacobian AND take ownership. | |
| const Mat & | getJacobian () const |
| Return a const pointer to the Jacobian. | |
| bool | isOwner (const Group *grp) const |
| Return true if grp is the owner of the Jacobian. | |
| Mat & | getPrec (const Group *newowner) |
| Get a reference to the Jacobian AND take ownership. | |
| const Mat & | getPrec () const |
| Return a const pointer to the Jacobian. | |
Protected Attributes | |
| Mat * | jacobian |
| Pointer to Petsc Jacobian matrix. | |
| Mat * | prec |
| Pointer to Petsc Preconditioning Matrix. | |
| const Group * | owner |
| Pointer to const group that owns Jacobian. | |
Shared Jacobian for NOX::Petsc::Group objects.
Due to the size of the Jacobian, we cannot afford to have multiple copies. Instead we implement a shared Jacobian that all groups use.
NOTE: An additional matrix is included with the SharedJacobian in anticipation of having a separate Matrix for the Jacobian and the Preconditioner. This option will be available in the future.
| SharedJacobian::SharedJacobian | ( | Mat & | j, |
| Mat & | p ) |
| const Mat & SharedJacobian::getJacobian | ( | ) | const |
Return a const pointer to the Jacobian.
References jacobian.
| Mat & SharedJacobian::getJacobian | ( | const Group * | newowner | ) |
Get a reference to the Jacobian AND take ownership.
References jacobian, and owner.
Referenced by NOX::Petsc::Group::applyRightPreconditioning(), NOX::Petsc::Group::computeGradient(), NOX::Petsc::Group::computeJacobian(), NOX::Petsc::Group::computeNewton(), NOX::Petsc::Group::Group(), and NOX::Petsc::Group::operator=().
| const Mat & SharedJacobian::getPrec | ( | ) | const |
Return a const pointer to the Jacobian.
References prec.
| Mat & SharedJacobian::getPrec | ( | const Group * | newowner | ) |
| bool SharedJacobian::isOwner | ( | const Group * | grp | ) | const |
Return true if grp is the owner of the Jacobian.
References owner.
Referenced by NOX::Petsc::Group::isJacobian().
|
protected |
Pointer to Petsc Jacobian matrix.
Referenced by getJacobian(), getJacobian(), SharedJacobian(), and SharedJacobian().
|
protected |
Pointer to const group that owns Jacobian.
Referenced by getJacobian(), getPrec(), isOwner(), and SharedJacobian().
|
protected |
Pointer to Petsc Preconditioning Matrix.
Referenced by getPrec(), getPrec(), and SharedJacobian().