Grid 0.7.0
BinaryHmcCheckpointer< Impl > Class Template Referenceabstract

#include <BinaryCheckpointer.h>

Inheritance diagram for BinaryHmcCheckpointer< Impl >:
BaseHmcCheckpointer< Impl > HmcObservable< Impl::Field >

Public Types

typedef Field::vector_object vobj
typedef vobj::scalar_object sobj
typedef getPrecision< sobj >::real_scalar_type sobj_stype
typedef sobj::DoublePrecision sobj_double

Public Member Functions

 INHERIT_FIELD_TYPES (Impl)
 BinaryHmcCheckpointer (const CheckpointerParameters &Params_)
void initialize (const CheckpointerParameters &Params_)
void truncate (std::string file)
void TrajectoryComplete (int traj, ConfigurationBase< Field > &SmartConfig, GridSerialRNG &sRNG, GridParallelRNG &pRNG)
void CheckpointRestore (int traj, Field &U, GridSerialRNG &sRNG, GridParallelRNG &pRNG)
void build_filenames (int traj, CheckpointerParameters &Params, std::string &conf_file, std::string &smear_file, std::string &rng_file)
void check_filename (const std::string &filename)
virtual void TrajectoryComplete (int traj, typename Impl::Field &U, GridSerialRNG &sRNG, GridParallelRNG &pRNG)
virtual void CheckpointRestore (int traj, typename Impl::Field &U, GridSerialRNG &sRNG, GridParallelRNG &pRNG)=0

Private Attributes

CheckpointerParameters Params

Detailed Description

template<class Impl>
class BinaryHmcCheckpointer< Impl >

Definition at line 40 of file BinaryCheckpointer.h.

Member Typedef Documentation

◆ vobj

template<class Impl>
typedef Field::vector_object BinaryHmcCheckpointer< Impl >::vobj

Definition at line 48 of file BinaryCheckpointer.h.

◆ sobj

template<class Impl>
typedef vobj::scalar_object BinaryHmcCheckpointer< Impl >::sobj

Definition at line 49 of file BinaryCheckpointer.h.

◆ sobj_stype

template<class Impl>
typedef getPrecision<sobj>::real_scalar_type BinaryHmcCheckpointer< Impl >::sobj_stype

Definition at line 50 of file BinaryCheckpointer.h.

◆ sobj_double

template<class Impl>
typedef sobj::DoublePrecision BinaryHmcCheckpointer< Impl >::sobj_double

Definition at line 51 of file BinaryCheckpointer.h.

Constructor & Destructor Documentation

◆ BinaryHmcCheckpointer()

template<class Impl>
BinaryHmcCheckpointer< Impl >::BinaryHmcCheckpointer ( const CheckpointerParameters & Params_)
inline

Definition at line 53 of file BinaryCheckpointer.h.

References initialize().

Member Function Documentation

◆ INHERIT_FIELD_TYPES()

template<class Impl>
BinaryHmcCheckpointer< Impl >::INHERIT_FIELD_TYPES ( Impl )

◆ initialize()

template<class Impl>
void BinaryHmcCheckpointer< Impl >::initialize ( const CheckpointerParameters & Params_)
inlinevirtual

Implements BaseHmcCheckpointer< Impl >.

Definition at line 57 of file BinaryCheckpointer.h.

References Params.

Referenced by BinaryHmcCheckpointer().

◆ truncate()

template<class Impl>
void BinaryHmcCheckpointer< Impl >::truncate ( std::string file)
inline

Definition at line 59 of file BinaryCheckpointer.h.

Referenced by TrajectoryComplete().

◆ TrajectoryComplete() [1/2]

template<class Impl>
void BinaryHmcCheckpointer< Impl >::TrajectoryComplete ( int traj,
ConfigurationBase< Field > & SmartConfig,
GridSerialRNG & sRNG,
GridParallelRNG & pRNG )
inlinevirtual

◆ CheckpointRestore() [1/2]

template<class Impl>
void BinaryHmcCheckpointer< Impl >::CheckpointRestore ( int traj,
Field & U,
GridSerialRNG & sRNG,
GridParallelRNG & pRNG )
inline

◆ build_filenames()

template<class Impl>
void BaseHmcCheckpointer< Impl >::build_filenames ( int traj,
CheckpointerParameters & Params,
std::string & conf_file,
std::string & smear_file,
std::string & rng_file )
inlineinherited

◆ check_filename()

template<class Impl>
void BaseHmcCheckpointer< Impl >::check_filename ( const std::string & filename)
inlineinherited

Definition at line 95 of file BaseCheckpointer.h.

References GridLogError.

Referenced by BinaryHmcCheckpointer< Impl >::CheckpointRestore().

◆ TrajectoryComplete() [2/2]

template<class Impl>
virtual void BaseHmcCheckpointer< Impl >::TrajectoryComplete ( int traj,
typename Impl::Field & U,
GridSerialRNG & sRNG,
GridParallelRNG & pRNG )
inlinevirtualinherited

Definition at line 104 of file BaseCheckpointer.h.

References U.

◆ CheckpointRestore() [2/2]

template<class Impl>
virtual void BaseHmcCheckpointer< Impl >::CheckpointRestore ( int traj,
typename Impl::Field & U,
GridSerialRNG & sRNG,
GridParallelRNG & pRNG )
pure virtualinherited

References U.

Field Documentation

◆ Params

template<class Impl>
CheckpointerParameters BinaryHmcCheckpointer< Impl >::Params
private

Definition at line 42 of file BinaryCheckpointer.h.

Referenced by CheckpointRestore(), initialize(), and TrajectoryComplete().


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