PSCF v1.1
SystemAccess.cpp
1/*
2* PSCF - Polymer Self-Consistent Field Theory
3*
4* Copyright 2016 - 2022, The Regents of the University of Minnesota
5* Distributed under the terms of the GNU General Public License.
6*/
7
8#include "SystemAccess.h" // header
9
10namespace Pscf {
11namespace Fd1d {
12
13 using namespace Util;
14
15 /*
16 * Default constructor.
17 */
19 : systemPtr_(0)
20 {}
21
22 /*
23 * Constructor.
24 */
26 : systemPtr_(&system)
27 {}
28
33 {}
34
35 /*
36 * Set the system pointer.
37 */
39 { systemPtr_ = &system; }
40
41} // namespace Fd1d
42} // namespace Pscf
const System & system() const
Get parent System by reference.
Definition: SystemAccess.h:158
virtual void setSystem(System &system)
Set the system after construction.
SystemAccess()
Default constructor.
Main class in SCFT simulation of one system.
Definition: fd1d/System.h:63
C++ namespace for polymer self-consistent field theory (PSCF).
Utility classes for scientific computation.
Definition: accumulators.mod:1