11#include <pscf/sweep/SweepTmpl.h>
12#include <fd1d/SystemAccess.h>
13#include <fd1d/misc/HomogeneousComparison.h>
14#include <fd1d/misc/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.
Solve a sequence of problems along a line in parameter space.
virtual void outputSolution(std::string const &stateFileName)
Output information after obtaining a converged solution.
virtual void outputSummary(std::ostream &outFile)
Output data to a running summary.
virtual int solve(bool isContinuation)
Call the current iterator to solve one SCFT problem.
virtual void readParameters(std::istream &in)
Read ns and baseFileName parameters.
int homogeneousMode_
Mode for comparison to homogeneous system (none -> -1)
virtual void reset()
Reset system to previous solution after iterature failure.
virtual void cleanup()
Close log file after end of sweep.
virtual void checkAllocation(State &state)
Check allocation of w fields in one state, allocate if needed.
virtual void setParameters(double s)
Set non-adjustable system parameters to new values.
virtual void extrapolate(double s)
Create initial guess for new w fields by polynomial extrapolation.
virtual void getSolution()
Update state(0) and output data after successful convergence.
virtual void setup()
Setup operation at beginning sweep.
Concise accesss to an associated System.
const System & system() const
Get parent System by reference.
Main class in SCFT simulation of one system.
Solve a sequence of problems along a path through parameter space.
DArray< System::WField > & state(int i)
Get reference to a stored state, with i=0 being most recent.
double s(int i) const
Get the value of s for a stored solution, with i = 0 most recent.
Dynamically allocatable contiguous array template.
File containing preprocessor macros for error handling.
C++ namespace for polymer self-consistent field theory (PSCF).
Utility classes for scientific computation.