1#ifndef PSPG_AM_ITERATOR_BASIS_H
2#define PSPG_AM_ITERATOR_BASIS_H
12#include <pscf/iterator/AmIteratorTmpl.h>
13#include <pscf/iterator/AmbdInteraction.h>
70 void setup(
bool isContinuation);
131 bool hasInitialGuess();
171 cudaReal findAverage(cudaReal *
const field,
int n);
Template for Anderson mixing iterator algorithm.
int verbose() const
Verbosity level, allowed values 0, 1, or 2.
int solve(bool isContinuation=false)
Iterate to a solution.
DArray< double > const & field() const
Return the current field or state vector by const reference.
Modified interaction to compute residual defn.
Pspg implementation of the Anderson Mixing iterator.
void setup(bool isContinuation)
Setup iterator just before entering iteration loop.
void readParameters(std::istream &in)
Read all parameters and initialize.
~AmIteratorBasis()
Destructor.
Base class for iterative solvers for SCF equations.
Main class in SCFT simulation of one system.
Dynamically allocatable contiguous array template.
ScalarParam< Type > & readOptional(std::istream &in, const char *label, Type &value)
Add and read a new optional ScalarParam < Type > object.
Class for storing history of previous values in an array.
C++ namespace for polymer self-consistent field theory (PSCF).
Utility classes for scientific computation.