1#ifndef RPC_AM_COMPRESSOR_H
2#define RPC_AM_COMPRESSOR_H
11#include "Compressor.h"
12#include <prdc/cpu/RField.h>
13#include <pscf/iterator/AmIteratorTmpl.h>
65 void setup(
bool isContinuation);
179 bool hasInitialGuess();
227 #ifndef RPC_AM_COMPRESSOR_TPP
Anderson Mixing compressor.
void setup(bool isContinuation)
Initialize just before entry to iterative loop.
int compress()
Compress to obtain partial saddle point w+.
double computeLambda(double r)
Compute mixing parameter lambda.
AmCompressor(System< D > &system)
Constructor.
void readParameters(std::istream &in)
Read all parameters and initialize.
~AmCompressor()
Destructor.
void outputTimers(std::ostream &out) const
Return compressor times contributions.
void clearTimers()
Clear all timers (reset accumulated time to zero).
Base class for iterators that impose incompressibility.
Main class, representing one complete 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.
Fields and FFTs for periodic boundary conditions (CPU)
Real periodic fields, SCFT and PS-FTS (CPU).
PSCF package top-level namespace.