PetscSOE Class Reference

#include <PetscSOE.h>

Inheritance diagram for PetscSOE:

LinearSOE SystemOfEqn MovableObject List of all members.

Public Member Functions

 PetscSOE (PetscSolver &theSolver, int blockSize=1)
 ~PetscSOE ()
int getNumEqn (void) const
int setSize (Graph &theGraph)
int addA (const Matrix &, const ID &, double fact=1.0)
int addB (const Vector &, const ID &, double fact=1.0)
int setB (const Vector &, double fact=1.0)
void zeroA (void)
void zeroB (void)
const VectorgetX (void)
const VectorgetB (void)
double normRHS (void)
void setX (int loc, double value)
void setX (const Vector &x)
int setSolver (PetscSolver &newSolver)
int sendSelf (int commitTag, Channel &theChannel)
int recvSelf (int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker)

Protected Member Functions

int setChannels (int nChannels, Channel **theChannels)

Friends

class PetscSolver
class ActorPetscSOE
class ShadowPetscSOE

Detailed Description

Definition at line 49 of file PetscSOE.h.


Constructor & Destructor Documentation

PetscSOE::PetscSOE ( PetscSolver theSolver,
int  blockSize = 1 
)

Definition at line 44 of file PetscSOE.cpp.

References PetscSolver::setLinearSOE().

PetscSOE::~PetscSOE (  ) 

Definition at line 62 of file badPetscSOE.cpp.


Member Function Documentation

int PetscSOE::getNumEqn ( void   )  const [virtual]

Implements LinearSOE.

Definition at line 57 of file badPetscSOE.cpp.

int PetscSOE::setSize ( Graph theGraph  )  [virtual]

Implements LinearSOE.

Definition at line 79 of file badPetscSOE.cpp.

References Graph::getNumVertex(), opserr, PETSC_COMM_WORLD, PETSC_DECIDE, and PETSC_NULL.

int PetscSOE::addA ( const Matrix ,
const ID ,
double  fact = 1.0 
) [virtual]

Implements LinearSOE.

Definition at line 266 of file badPetscSOE.cpp.

References n, Matrix::noCols(), Matrix::noRows(), and opserr.

Referenced by ShadowPetscSOE::addA().

int PetscSOE::addB ( const Vector ,
const ID ,
double  fact = 1.0 
) [virtual]

Implements LinearSOE.

Definition at line 303 of file badPetscSOE.cpp.

References n, opserr, and Vector::Size().

Referenced by ShadowPetscSOE::addB().

int PetscSOE::setB ( const Vector ,
double  fact = 1.0 
) [virtual]

Implements LinearSOE.

Definition at line 332 of file badPetscSOE.cpp.

References n, opserr, and Vector::Size().

Referenced by ShadowPetscSOE::setB().

void PetscSOE::zeroA ( void   )  [virtual]

Implements LinearSOE.

Definition at line 358 of file badPetscSOE.cpp.

Referenced by ActorPetscSOE::run(), and ShadowPetscSOE::zeroA().

void PetscSOE::zeroB ( void   )  [virtual]

Implements LinearSOE.

Definition at line 365 of file badPetscSOE.cpp.

Referenced by ActorPetscSOE::run(), and ShadowPetscSOE::zeroB().

const Vector & PetscSOE::getX ( void   )  [virtual]

Implements LinearSOE.

Definition at line 373 of file badPetscSOE.cpp.

References exit(), and opserr.

const Vector & PetscSOE::getB ( void   )  [virtual]

Implements LinearSOE.

Definition at line 391 of file badPetscSOE.cpp.

References exit(), and opserr.

Referenced by ShadowPetscSOE::getB(), ShadowPetscSOE::normRHS(), and normRHS().

double PetscSOE::normRHS ( void   )  [virtual]

Implements LinearSOE.

Definition at line 408 of file badPetscSOE.cpp.

References getB().

void PetscSOE::setX ( int  loc,
double  value 
) [virtual]

Implements LinearSOE.

Definition at line 422 of file badPetscSOE.cpp.

Referenced by ShadowPetscSOE::setX().

void PetscSOE::setX ( const Vector x  )  [virtual]

Implements LinearSOE.

Definition at line 469 of file PetscSOE.cpp.

References Vector::Size().

int PetscSOE::setSolver ( PetscSolver newSolver  ) 

int PetscSOE::sendSelf ( int  commitTag,
Channel theChannel 
) [virtual]

Implements MovableObject.

Definition at line 494 of file PetscSOE.cpp.

References endln, and opserr.

int PetscSOE::recvSelf ( int  commitTag,
Channel theChannel,
FEM_ObjectBroker theBroker 
) [virtual]

Implements MovableObject.

Definition at line 556 of file PetscSOE.cpp.

int PetscSOE::setChannels ( int  nChannels,
Channel **  theChannels 
) [protected]

Definition at line 571 of file PetscSOE.cpp.


Friends And Related Function Documentation

friend class PetscSolver [friend]

Definition at line 79 of file PetscSOE.h.

friend class ActorPetscSOE [friend]

Definition at line 80 of file PetscSOE.h.

friend class ShadowPetscSOE [friend]

Definition at line 81 of file PetscSOE.h.


The documentation for this class was generated from the following files:

Generated on Mon Oct 23 15:05:47 2006 for OpenSees by doxygen 1.5.0