1#ifndef RP_AM_ITERATOR_BASIS_H
2#define RP_AM_ITERATOR_BASIS_H
11#include <pscf/iterator/AmIteratorTmpl.h>
12#include <rp/scft/iterator/Iterator.h>
13#include <util/containers/DArray.h>
14#include <pscf/iterator/AmbdInteraction.h>
16#include <pscf/backend/TmplDeclare.h>
41 template <
int D,
class T>
81 void setup(
bool isContinuation)
override;
91 using Iterator<D,T>::flexibleParams_;
106 bool hasInitialGuess()
override;
113 int nElements()
override;
120 void getCurrent(
VectorT& curr)
override;
128 void evaluate()
override;
135 void getResidual(
VectorT& resid)
override;
142 void update(
VectorT& newGuess)
override;
147 void outputToLog()
override;
Modified interaction to compute residual defn.
Anderson Mixing iterator with imposed space-group symmetry.
AmIteratorBasis(System< D, T > &system)
Constructor.
void readParameters(std::istream &in) override
Read all parameters and initialize.
DArray< double > VectorT
Alias for type of residual and state vectors.
void setup(bool isContinuation) override
Setup iterator just before entering iteration loop.
AmIteratorTmpl< Iterator< D, T >, VectorT > AmIterTmplT
Alias for base class.
void outputTimers(std::ostream &out) const override
Output timing results to log file.
Base class template for iterative solvers for SCF equations.
Base class template for classes that represent a complete system.
Dynamically allocatable contiguous array template.
Code for programs that simulate real-valued periodic fields.
PSCF package top-level namespace.