1#ifndef RPC_AM_ITERATOR_BASIS_H
2#define RPC_AM_ITERATOR_BASIS_H
12#include <pscf/iterator/AmIteratorTmpl.h>
13#include <pscf/iterator/AmbdInteraction.h>
14#include <util/containers/DArray.h>
15#include <util/containers/RingBuffer.h>
21 template <
int D>
class System;
70 using Iterator<D>::setFlexibleParams;
93 void setup(
bool isContinuation);
157 bool hasInitialGuess();
202 #ifndef RPC_AM_ITERATOR_BASIS_TPP
DArray< double > const & residual() const
int solve(bool isContinuation=false)
Modified interaction to compute residual defn.
Rpc implementation of the Anderson Mixing iterator with symmetry.
void setup(bool isContinuation)
Setup iterator just before entering iteration loop.
void outputTimers(std::ostream &out) const
Output timing results to log file.
AmIteratorBasis(System< D > &system)
Constructor.
~AmIteratorBasis()
Destructor.
void readParameters(std::istream &in)
Read all parameters and initialize.
Base class for iterative solvers for SCF equations.
Main class, representing one complete system.
Dynamically allocatable contiguous array template.
FSArrayParam< Type, N > & readOptionalFSArray(std::istream &in, const char *label, FSArray< Type, N > &array, int size)
Add and read an optional FSArray < Type, N > array parameter.
void setClassName(const char *className)
Set class name string.
ScalarParam< Type > & readOptional(std::istream &in, const char *label, Type &value)
Add and read a new optional ScalarParam < Type > object.
void readParamCompositeOptional(std::istream &in, ParamComposite &child, bool next=true)
Add and attempt to read an optional child ParamComposite.
Class for storing history of previous values in an array.
Real periodic fields, SCFT and PS-FTS (CPU).
PSCF package top-level namespace.