1#ifndef RP_AM_ITERATOR_BASIS_H
2#define RP_AM_ITERATOR_BASIS_H
11#include <pscf/iterator/AmIteratorTmpl.h>
12#include <pscf/iterator/AmbdInteraction.h>
13#include <util/containers/DArray.h>
41 template <
int D,
class T>
90 void setup(
bool isContinuation)
override;
93 using IteratorT::system;
94 using IteratorT::flexibleParams_;
109 bool hasInitialGuess()
override;
116 int nElements()
override;
123 void getCurrent(
VectorT& curr)
override;
131 void evaluate()
override;
138 void getResidual(
VectorT& resid)
override;
145 void update(
VectorT& newGuess)
override;
150 void outputToLog()
override;
Modified interaction to compute residual defn.
virtual ~AmIteratorBasis()
Destructor.
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.
void outputTimers(std::ostream &out) const override
Output timing results to log file.
typename T::Iterator IteratorT
Alias for iterator type.
AmIteratorTmpl< IteratorT, VectorT > AmIterTmplT
Alias for base class.
AmIteratorBasis(typename T::System &system)
Constructor.
Dynamically allocatable contiguous array template.
Class templates for real-valued periodic fields.
PSCF package top-level namespace.