1#ifndef RPC_LR_POST_AM_COMPRESSOR_H
2#define RPC_LR_POST_AM_COMPRESSOR_H
11#include "Compressor.h"
12#include <prdc/cpu/RField.h>
13#include <prdc/cpu/RFieldDft.h>
14#include <pscf/iterator/AmIteratorTmpl.h>
15#include <rpc/fts/compressor/intra/IntraCorrelation.h>
21 template <
int D>
class System;
22 template <
int D>
class IntraCorrelation;
73 void setup(
bool isContinuation);
198 bool hasInitialGuess();
244 double computeLambda(
double r);;
254 bool isIntraCalculated_;
266 #ifndef RPC_LR_POST_AM_COMPRESSOR_TPP
Template for Anderson mixing iterator algorithm.
An IntVec<D, T> is a D-component vector of elements of integer type T.
Fourier transform of a real field on an FFT mesh.
Field of real double precision values on an FFT mesh.
Base class for iterators that impose incompressibility.
Intramolecular correlation analysis for LR compressors.
Anderson Mixing compressor with linear-response mixing step.
void readParameters(std::istream &in)
Read all parameters and initialize.
~LrAmCompressor()
Destructor.
LrAmCompressor(System< D > &system)
Constructor.
void outputTimers(std::ostream &out)
Return compressor times contributions.
void clearTimers()
Clear all timers (reset accumulated time to zero).
void setup(bool isContinuation)
Initialize just before entry to iterative loop.
int compress()
Compress to obtain partial saddle point w+.
Main class for SCFT or PS-FTS simulation of one 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)
PSCF package top-level namespace.
Utility classes for scientific computation.