ENH: storePrevIter now handled by solutionControl class

This commit is contained in:
andy
2011-09-08 11:42:05 +01:00
parent 22fea113e4
commit bc952e63de
11 changed files with 219 additions and 30 deletions

View File

@ -59,10 +59,16 @@ class solution
bool caching_;
//- Dictionary of relaxation factors for all the fields
dictionary relaxationFactors_;
dictionary fieldRelaxDict_;
//- Dictionary of relaxation factors for all the equations
dictionary eqnRelaxDict_;
//- Optional default relaxation factor for all the fields
scalar defaultRelaxationFactor_;
scalar fieldRelaxDefault_;
//- Optional default relaxation factor for all the equations
scalar eqnRelaxDefault_;
//- Dictionary of solver parameters for all the fields
dictionary solvers_;
@ -107,10 +113,16 @@ public:
bool cache(const word& name) const;
//- Return true if the relaxation factor is given for the field
bool relax(const word& name) const;
bool relaxField(const word& name) const;
//- Return true if the relaxation factor is given for the equation
bool relaxEquation(const word& name) const;
//- Return the relaxation factor for the given field
scalar relaxationFactor(const word& name) const;
scalar fieldRelaxationFactor(const word& name) const;
//- Return the relaxation factor for the given eqation
scalar equationRelaxationFactor(const word& name) const;
//- Return the selected sub-dictionary of solvers if the "select"
// keyword is given, otherwise return the complete dictionary
@ -122,6 +134,7 @@ public:
//- Return the solver controls dictionary for the given field
const dictionary& solver(const word& name) const;
// Read
//- Read the solution dictionary