fixed: encapsulate LinSolParams

git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@844 e10b68d5-8a6e-419e-a041-bce267b0401d
This commit is contained in:
akva 2011-02-25 10:37:30 +00:00 committed by Knut Morten Okstad
parent 309002ea15
commit 16eada7028
2 changed files with 9 additions and 0 deletions

View File

@ -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);
}

View File

@ -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 };