PSCF v1.4.0

ShiftMove shifts field. More...

#include <ShiftMove.h>

Inheritance diagram for Pscf::Rpg::ShiftMove< D >:
Pscf::Rp::ShiftMove< D, Types< D > >

Public Member Functions

 ShiftMove (McSimulator< D > &simulator)
 Constructor.
void setup () override
 Setup before simulation.
Public Member Functions inherited from Pscf::Rp::ShiftMove< D, Types< D > >
void readParameters (std::istream &in) override
 Read body of parameter file block.
void setup () override
 Setup before the beginning of each simulation run.

Protected Member Functions

void shiftFields (IntVec< D > const &shift) override
 Compute and store shifted w fields.
Protected Member Functions inherited from Pscf::Rp::ShiftMove< D, Types< D > >
 ShiftMove (typename Types< D >::McSimulator &simulator)
 Constructor.
 ~ShiftMove ()=default
 Destructor.
void attemptMove () override
 Attempt move that translates all w fields.
void shiftField (Array< double > &out, Array< double > const &in, IntVec< D > shift, IntVec< D > dimensions) const
 Compute a shifted version of a field.

Additional Inherited Members

Protected Attributes inherited from Pscf::Rp::ShiftMove< D, Types< D > >
DArray< typename Types< D >::RField > w_
 Shifted field configurations.

Detailed Description

template<int D>
class Pscf::Rpg::ShiftMove< D >

ShiftMove shifts field.

See also
Manual Page.

Definition at line 35 of file /fts/montecarlo/ShiftMove.h.

Constructor & Destructor Documentation

◆ ShiftMove()

template<int D>
Pscf::Rpg::ShiftMove< D >::ShiftMove ( McSimulator< D > & simulator)

Constructor.

Parameters
simulatorparent McSimulator

Definition at line 28 of file ShiftMove.cu.

Member Function Documentation

◆ setup()

template<int D>
void Pscf::Rpg::ShiftMove< D >::setup ( )
override

Setup before simulation.

Definition at line 58 of file /fts/montecarlo/ShiftMove.tpp.

References Pscf::Rp::McMove< D, Types< D > >::setup(), setup(), and Pscf::Rp::ShiftMove< D, Types< D > >::w_.

Referenced by setup().

◆ shiftFields()

template<int D>
void Pscf::Rpg::ShiftMove< D >::shiftFields ( IntVec< D > const & shift)
overrideprotectedvirtual

Compute and store shifted w fields.

On return, shifted values of fields obtained from system().w() are stored in the w_ member array.

Parameters
shiftvector of integer shift values

Implements Pscf::Rp::ShiftMove< D, Types< D > >.

Definition at line 52 of file ShiftMove.cu.

References Pscf::Rp::ShiftMove< D, Types< D > >::shiftField(), and Pscf::Rp::ShiftMove< D, Types< D > >::w_.


The documentation for this class was generated from the following files: