PSCF v1.5.0
Compressor.tpp
1#ifndef RP_COMPRESSOR_TPP
2#define RP_COMPRESSOR_TPP
3
4/*
5* PSCF - Polymer Self-Consistent Field
6*
7* Copyright 2015 - 2026, David Morse (morse012@um.edu) and co-authors
8* Distributed under the terms of the GNU General Public License.
9*/
10
11#include "Compressor.h"
12
13namespace Pscf {
14namespace Rp {
15
16 /*
17 * Default constructor.
18 */
19 template <int D, class T>
21 : mdeCounter_(0),
22 sysPtr_(nullptr)
23 { setClassName("Compressor"); }
24
25 /*
26 * Constructor (creates association with parent system)
27 */
28 template <int D, class T>
30 : mdeCounter_(0),
31 sysPtr_(&system)
32 { setClassName("Compressor"); }
33
34 /*
35 * Create association with the parent system.
36 */
37 template <int D, class T>
40
41 /*
42 * Get number of times MDE has been solved.
43 */
44 template <int D, class T>
46 { return mdeCounter_; }
47
48} // namespace Rp
49} // namespace Pscf
50#endif
void setSystem(System< D, T > &system)
Create association with the parent System.
Compressor()
Default constructor.
System< D, T > const & system() const
Return parent system by const reference.
Definition Compressor.h:128
int mdeCounter() const
Get the number of times the MDE has been solved.
int mdeCounter_
Count how many times MDE has been solved.
Definition Compressor.h:113
Base class template for classes that represent a complete system.
void setClassName(const char *className)
Set class name string.
Code for programs that simulate real-valued periodic fields.
Definition param_pc.dox:2
PSCF package top-level namespace.