PSCF v1.4.0
LrAmCompressor.cpp
1/*
2* PSCF - Polymer Self-Consistent Field
3*
4* Copyright 2015 - 2025, The Regents of the University of Minnesota
5* Distributed under the terms of the GNU General Public License.
6*/
7
8#include "LrAmCompressor.h"
9#include <rpc/system/System.h>
10#include <rpc/solvers/Mixture.h>
11#include <rpc/field/Domain.h>
12#include <rpc/field/WFields.h>
13#include <rpc/field/CFields.h>
14#include <prdc/cpu/FFT.h>
15#include <prdc/cpu/RField.h>
16#include <pscf/cpu/VecOp.h>
17#include <pscf/cpu/VecOpCx.h>
18#include <pscf/cpu/Reduce.h>
19#include <pscf/math/IntVec.h>
20#include <util/global.h>
21
22#include <rp/fts/compressor/LrAmCompressor.tpp>
23
24namespace Pscf {
25namespace Rpc {
26
27 /*
28 * Constructor.
29 */
30 template <int D>
32 : Rp::LrAmCompressor<D, Types<D>, DArray<double> >(system)
33 {}
34
35}
36}
37
38// Explicit instantiation definitions
39namespace Pscf {
40 namespace Rp {
41 template class LrAmCompressor<1, Rpc::Types<1>, DArray<double> >;
42 template class LrAmCompressor<2, Rpc::Types<2>, DArray<double> >;
43 template class LrAmCompressor<3, Rpc::Types<3>, DArray<double> >;
44 }
45 namespace Rpc {
46 template class LrAmCompressor<1>;
47 template class LrAmCompressor<2>;
48 template class LrAmCompressor<3>;
49 }
50}
Linear-response Anderson mixing compressor.
LrAmCompressor(System< D > &system)
Constructor.
A complete physical system.
Aliases for types used in the Rpc program-level namespace.
Dynamically allocatable contiguous array template.
Definition DArray.h:32
File containing preprocessor macros for error handling.
Class templates for real-valued periodic fields.
Real periodic fields, SCFT and PS-FTS (CPU).
Definition param_pc.dox:2
PSCF package top-level namespace.