|
PSCF v1.4.0
|
ShiftMove shifts field. More...
#include <ShiftMove.h>
Public Member Functions | |
| ShiftMove (McSimulator< D > &simulator) | |
| Constructor. | |
| 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) |
| 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. | |
ShiftMove shifts field.
Definition at line 33 of file /fts/montecarlo/ShiftMove.h.
| Pscf::Rpc::ShiftMove< D >::ShiftMove | ( | McSimulator< D > & | simulator | ) |
|
protectedvirtual |
Compute and store shifted w fields.
On return, shifted values of fields obtained from system().w() for all monomer types are stored in the w_ member array.
| shift | vector of integer shift values (# of grid points) |
Implements Pscf::Rp::ShiftMove< D, Types< D > >.
Definition at line 35 of file ShiftMove.cpp.
References Pscf::Rp::ShiftMove< D, Types< D > >::shiftField(), and Pscf::Rp::ShiftMove< D, Types< D > >::w_.