63 #ifndef ShadowPetscSOE_h 64 #define ShadowPetscSOE_h 66 #include <solution/system_of_eqn/linearSOE/LinearSOE.h> 67 #include <solution/system_of_eqn/linearSOE/petsc/PetscSOE.h> 70 #include <solution/system_of_eqn/linearSOE/petsc/petsc.h> 103 int addA(
const Matrix &,
const ID &,
double fact = 1.0);
104 int addB(
const Vector &,
const ID &,
const double &fact= 1.0);
105 int setB(
const Vector &,
const double &fact= 1.0);
112 double normRHS(
void);
114 void setX(
int loc,
double value);
121 inline SystemOfEqn *ShadowPetscSOE::getCopy(
void)
const void setX(int loc, double value)
The LinearSOE object is responsible for setting $x(loc) = value$.
Definition: ShadowPetscSOE.cpp:410
Float vector abstraction.
Definition: Vector.h:93
PETSC library based SOE solver.
Definition: PetscSolver.h:74
Solution procedure for the finite element problem.
Definition: AnalysisAggregation.h:89
Linear system of equations.
Definition: LinearSOE.h:91
int setSize(Graph &theGraph)
Determines and sets the size of the system.
Definition: ShadowPetscSOE.cpp:175
Vector of integers.
Definition: ID.h:93
System of equations base class.
Definition: SystemOfEqn.h:89
int sendSelf(CommParameters &)
Send the object.
Definition: ShadowPetscSOE.cpp:420
int recvSelf(const CommParameters &)
Receive the object.
Definition: ShadowPetscSOE.cpp:427
int addA(const Matrix &, const ID &, double fact=1.0)
The LinearSOE object assembles fact times the Matrix M into the matrix $A$.
Definition: ShadowPetscSOE.cpp:320
void zeroA(void)
To zero the matrix $A$, i.e. set all the components of $A$ to $0$.
Definition: ShadowPetscSOE.cpp:332
PETSC based system of equations.
Definition: PetscSOE.h:84
The Graph class provides the abstraction of a graph.
Definition: Graph.h:93
int addB(const Vector &, const ID &, const double &fact=1.0)
The LinearSOE object assembles fact times the Vector V into the vector $b$.
Definition: ShadowPetscSOE.cpp:324
int getNumEqn(void) const
Returns the number of equations in the system.
Definition: ShadowPetscSOE.cpp:156
void zeroB(void)
To zero the vector $b$, i.e. set all the components of $b$ to $0$.
Definition: ShadowPetscSOE.cpp:340
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:34
Communication parameters between processes.
Definition: CommParameters.h:65
Matrix of floats.
Definition: Matrix.h:108
int setB(const Vector &, const double &fact=1.0)
The LinearSOE object sets the vector b to be fact times the vector V.
Definition: ShadowPetscSOE.cpp:328
int solve(void)
Computes the solution of the system of equations.
Definition: ShadowPetscSOE.cpp:167
??.
Definition: ShadowPetscSOE.h:79