11#include <pscf/sweep/SweepTmpl.h>
12#include <util/containers/FSArray.h>
38 template <
int D,
class T>
115 virtual int solve(
bool isContinuation);
124 virtual void reset();
144 {
return (
bool)(systemPtr_); }
177 typename T::BasisFieldState trial_;
183 std::ofstream logFile_;
186 typename T::System* systemPtr_;
189 void outputSolution();
192 void outputSummary(std::ostream&);
bool writeWRGrid_
Should converged w fields be written to file in r-grid format?
Sweep()
Default constructor.
virtual void setup()
Setup operation at the beginning of a sweep.
bool hasSystem()
Does an association with the parent system exist?
void setSystem(typename T::System &system)
Set association with parent system.
virtual void getSolution()
Update state(0) and output data after successful convergence.
bool writeCRGrid_
Should concentration fields be written to file in r-grid format?
virtual void cleanup()
Cleanup operation at the beginning of a sweep.
virtual int solve(bool isContinuation)
Call current iterator to solve SCFT problem.
virtual void setParameters(double sNew)=0
Set system parameters to new values.
T::System & system()
Return the parent system by reference.
virtual void readParameters(std::istream &in)
Read parameters from param file.
bool writeCBasis_
Should concentration fields be written to file in basis format?
virtual void extrapolate(double sNew)
Create a guess for adjustable variables by continuation.
virtual void reset()
Reset system to previous solution after iterature failure.
virtual void checkAllocation(typename T::BasisFieldState &state)
Check allocation of fields in one state, allocate if necessary.
T::BasisFieldState & state(int i)
SweepTmpl(int historyCapacity)
A fixed capacity (static) contiguous array with a variable logical size.
File containing preprocessor macros for error handling.
#define UTIL_CHECK(condition)
Assertion macro suitable for serial or parallel production code.
Class templates for real-valued periodic fields.
PSCF package top-level namespace.