fixed: encapsulate LinSolParams
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@844 e10b68d5-8a6e-419e-a041-bce267b0401d
This commit is contained in:
parent
309002ea15
commit
16eada7028
@ -1257,3 +1257,9 @@ bool SIMbase::dumpSolution (const Vector& psol, std::ostream& os) const
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void SIMbase::readLinSolParams(std::istream& is, int npar)
|
||||
{
|
||||
if (!mySolParams) mySolParams = new LinSolParams();
|
||||
mySolParams->read(is,npar);
|
||||
}
|
||||
|
@ -329,6 +329,9 @@ protected:
|
||||
//! \param[in] sol Global primary solution vectors in DOF-order
|
||||
void extractPatchSolution(const ASMbase* patch, const Vectors& sol);
|
||||
|
||||
//! \brief Read a LinSolParams from the given stream.
|
||||
//! This method helps with encapsulating PETSc in libIFEM
|
||||
void readLinSolParams(std::istream& is, int npar);
|
||||
public:
|
||||
//! \brief Enum defining the available discretization methods.
|
||||
enum Discretization { Spline, Lagrange, Spectral };
|
||||
|
Loading…
Reference in New Issue
Block a user