11#include <pscf/sweep/SweepTmpl.h>
12#include <r1/system/SystemAccess.h>
13#include <r1/system/HomogeneousComparison.h>
14#include <r1/field/FieldIo.h>
15#include <util/containers/DArray.h>
109 virtual int solve(
bool isContinuation);
117 virtual void reset();
142 std::ofstream logFile_;
145 void assignFields(State& lhs, State
const & rhs)
const;
Read and write fields to file.
Command to compute properties of homogeneous reference system.
virtual void outputSolution(std::string const &stateFileName)
Output information after obtaining a converged solution.
virtual void extrapolate(double s)
Create initial guess for new w fields by polynomial extrapolation.
virtual void setParameters(double s)
Set non-adjustable system parameters to new values.
virtual void getSolution()
Update state(0) and output data after successful convergence.
virtual void reset()
Reset system to previous solution after iterature failure.
virtual int solve(bool isContinuation)
Call the current iterator to solve one SCFT problem.
virtual void cleanup()
Close log file after end of sweep.
virtual void setup()
Setup operation at beginning sweep.
virtual void outputSummary(std::ostream &outFile)
Output data to a running summary.
virtual void readParameters(std::istream &in)
Read ns and baseFileName parameters.
int homogeneousMode_
Mode for comparison to homogeneous system (none -> -1).
virtual void checkAllocation(State &state)
Check allocation of w fields in one state, allocate if needed.
Sweep(System &system)
Constructor.
SystemAccess()
Default constructor.
const System & system() const
Get parent System by reference.
Main class in SCFT simulation of one system.
DArray< System::WField > & state(int i)
SweepTmpl(int historyCapacity)
Dynamically allocatable contiguous array template.
File containing preprocessor macros for error handling.
SCFT with real 1D fields.
PSCF package top-level namespace.