CASM
1.1.0
A Clusters Approach to Statistical Mechanics
|
#include <MonteDriver.hh>
MonteDriver consists of a specialized MonteCarlo object and a list of conditions to equilibrate at. The first condition in the list requires a starting configuration (read from the setting), while subsequent conditions are calculated using the final state of the previous condition.
The different kinds of drive modes the user can specify are: INCREMENTAL: Given a delta in condition values, increment the conditions by the delta after each point CUSTOM: Calculate for a list of condition values
Definition at line 30 of file MonteDriver.hh.
Public Types | |
typedef RunType::CondType | CondType |
typedef RunType::SettingsType | SettingsType |
Public Member Functions | |
MonteDriver (const PrimClex &primclex, const SettingsType &settings, Log &_log, Log &_err_log) | |
Constructor via MonteSettings. More... | |
void | run () |
Run everything requested by the MonteSettings. More... | |
Private Member Functions | |
bool | debug () const |
run in debug mode? More... | |
std::vector< CondType > | make_conditions_list (const PrimClex &primclex, const SettingsType &settings) |
void | single_run (Index cond_index) |
Converge the MonteCarlo for conditions 'cond_index'. More... | |
Index | _find_starting_conditions () const |
Check for existing calculations to find starting conditions. More... | |
Private Attributes | |
Log & | m_log |
target for log messages More... | |
Log & | m_err_log |
target for error messages More... | |
SettingsType | m_settings |
MonteCarloDirectoryStructure | m_dir |
describes where to write output More... | |
const Monte::DRIVE_MODE | m_drive_mode |
Specifies how to build the conditions list from the settings. More... | |
RunType | m_mc |
Specialized Monte Carlo object to use throughout. More... | |
const std::vector< CondType > | m_conditions_list |
bool | m_debug |
run in debug mode? More... | |
notstd::cloneable_ptr< MonteCarloEnum > | m_enum |
Enumerated configurations encountered during Monte Carlo calculations. More... | |
typedef RunType::CondType CASM::Monte::MonteDriver< RunType >::CondType |
Definition at line 32 of file MonteDriver.hh.
typedef RunType::SettingsType CASM::Monte::MonteDriver< RunType >::SettingsType |
Definition at line 33 of file MonteDriver.hh.
CASM::Monte::MonteDriver< RunType >::MonteDriver | ( | const PrimClex & | primclex, |
const SettingsType & | settings, | ||
Log & | _log, | ||
Log & | _err_log | ||
) |
Constructor via MonteSettings.
Definition at line 20 of file MonteDriver_impl.hh.
|
private |
Check for existing calculations to find starting conditions.
Checks existing files to determine where to restart a path.
Definition at line 155 of file MonteDriver_impl.hh.
|
inlineprivate |
run in debug mode?
Definition at line 44 of file MonteDriver.hh.
|
private |
Return the appropriate std::vector of conditions to visit based from settings. Use for construction.
Reads from the settings and constructs an appropriate std::vector of conditions for MonteDriver to visit.
Options are:
Definition at line 378 of file MonteDriver_impl.hh.
void CASM::Monte::MonteDriver< RunType >::run |
Run everything requested by the MonteSettings.
Run calculations for all conditions, outputting data as you finish each one.
Definition at line 47 of file MonteDriver_impl.hh.
|
private |
Converge the MonteCarlo for conditions 'cond_index'.
Definition at line 234 of file MonteDriver_impl.hh.
|
private |
List of specialized conditions to visit in sequential order. Does not include initial conditions.
Definition at line 78 of file MonteDriver.hh.
|
private |
run in debug mode?
Definition at line 81 of file MonteDriver.hh.
|
private |
describes where to write output
Definition at line 68 of file MonteDriver.hh.
|
private |
Specifies how to build the conditions list from the settings.
Definition at line 71 of file MonteDriver.hh.
|
private |
Enumerated configurations encountered during Monte Carlo calculations.
Definition at line 84 of file MonteDriver.hh.
|
private |
target for error messages
Definition at line 61 of file MonteDriver.hh.
|
private |
target for log messages
Definition at line 58 of file MonteDriver.hh.
|
private |
Specialized Monte Carlo object to use throughout.
Definition at line 74 of file MonteDriver.hh.
|
private |
Copy of initial settings given at construction. Will expand to have MonteCarlo states dumped into it.
Definition at line 65 of file MonteDriver.hh.