1#ifndef RP_BASIS_FIELD_STATE_H
2#define RP_BASIS_FIELD_STATE_H
11#include <prdc/field/FieldState.h>
35 template <
int D,
class T>
37 :
public FieldState<D, DArray<double>, typename T::System>
53 void read(
const std::string & filename);
60 void write(
const std::string & filename);
102 using FieldIoT =
typename T::FieldIo;
typename T::System & system()
const UnitCell< D > & unitCell() const
const DArray< FT > & fields() const
const DArray< double > & field(int monomerId) const
BasisFieldState()
Default constructor.
void write(const std::string &filename)
Write state to file.
void getSystemState()
Store the current state of the associated system.
void allocate()
Allocate all fields.
void read(const std::string &filename)
Read state from file.
typename T::System & system()
Get associated System by reference.
void setSystemState(bool newCellParams)
Set the state of the associated system to this state.
Periodic fields and crystallography.
Class templates for real-valued periodic fields.
PSCF package top-level namespace.