1#ifndef PSPG_AM_ITERATOR_GRID_H
2#define PSPG_AM_ITERATOR_GRID_H
12#include <pscf/iterator/AmIteratorTmpl.h>
13#include <pscf/iterator/AmbdInteraction.h>
68 void setup(
bool isContinuation);
125 double computeVDotProd(
FieldCUDA const & resCurrent,
182 void addPredictedError(
FieldCUDA& fieldTrial,
187 bool hasInitialGuess();
227 cudaReal findAverage(cudaReal
const *
field,
int n);
Template for Anderson mixing iterator algorithm.
int solve(bool isContinuation=false)
Iterate to a solution.
FieldCUDA const & field() const
Return the current field or state vector by const reference.
virtual double norm(FieldCUDA const &hist)
Find the L2 norm of a vector.
Modified interaction to compute residual defn.
Pspg implementation of the Anderson Mixing iterator.
~AmIteratorGrid()
Destructor.
void readParameters(std::istream &in)
Read all parameters and initialize.
void setup(bool isContinuation)
Setup iterator just before entering iteration loop.
Base class for iterative solvers for SCF equations.
Main class in SCFT simulation of one system.
Dynamically allocatable contiguous array template.
Dynamically allocated Matrix.
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.