1#ifndef RPG_SIM_STATE_TPP
2#define RPG_SIM_STATE_TPP
50 wc.allocate(nMonomer);
51 for (
int i = 0; i < nMonomer; ++i) {
52 w[i].allocate(dimensions);
53 wc[i].allocate(dimensions);
57 cc.allocate(nMonomer);
58 for (
int i = 0; i < nMonomer; ++i) {
59 cc[i].allocate(dimensions);
63 dc.allocate(nMonomer-1);
64 for (
int i = 0; i < nMonomer - 1; ++i) {
65 dc[i].allocate(dimensions);
An IntVec<D, T> is a D-component vector of elements of integer type T.
Fields, FFTs, and utilities for periodic boundary conditions (CUDA)
SCFT and PS-FTS with real periodic fields (GPU)
PSCF package top-level namespace.
bool needsDc
If dc fields needs to be saved.
bool isAllocated
Has memory be allocated for the w field?
double hamiltonian
Monte-Carlo Hamiltonian value.
bool needsHamiltonian
If hamiltonian needs to be saved.
double fieldHamiltonian
Monte-Carlo field part contribution to Hamiltonian value.
DArray< RField< D > > cc
Eigenvector components of c fields on a real space grid.
DArray< RField< D > > wc
Chemical potential fields, r-grid format, indexed by eigenvector.
void allocate(int nMonomer, IntVec< D > const &dimensions)
Allocate memory for fields.
double idealHamiltonian
Monte-Carlo ideal gas contribution to Hamiltonian value.
DArray< RField< D > > w
Chemical potential fields, r-grid format, indexed by monomer.
DArray< RField< D > > dc
Components of functional derivatives of the Hamiltonian fields on a real space grid.
bool hasData
Is this struct being used to store data?
bool needsCc
If cc fields needs to be saved.