1#ifndef RP_SHIFT_MOVE_BASE_H
2#define RP_SHIFT_MOVE_BASE_H
11#include <rp/fts/montecarlo/McMove.h>
12#include <pscf/field/RField.h>
13#include <pscf/math/IntVec.h>
14#include <util/containers/DArray.h>
16#include <pscf/backend/TmplDeclare.h>
20 template <
typename Data>
class Array;
24 template <
int D,
class T>
class System;
49 template <
int D,
class T>
An IntVec<D, T> is a D-component vector of elements of integer type T.
McSimulator< D, CPT > & simulator()
System< D, CPT > & system()
McMove(McSimulator< D, T > &simulator)
Constructor.
Monte-Carlo simulation coordinator.
ShiftMove rigidly translates all w fields.
DArray< RField< D, CPT > > w_
void attemptMove() override
Attempt move that translates all w fields.
~ShiftMoveBase()=default
Destructor.
virtual void shiftFields(IntVec< D > const &shift)=0
Compute and store shifted w fields.
void setup() override
Setup before the beginning of each simulation run.
void readParameters(std::istream &in) override
Read body of parameter file block.
ShiftMoveBase(McSimulator< D, T > &simulator)
Constructor.
void shiftField(Array< double > &out, Array< double > const &in, IntVec< D > shift, IntVec< D > dimensions) const
Compute a shifted version of a field.
Base class template for classes that represent a complete system.
Array container class template.
Dynamically allocatable contiguous array template.
Code for programs that simulate real-valued periodic fields.
PSCF package top-level namespace.
Utility classes for scientific computation.