|
CASM
AClustersApproachtoStatisticalMechanics
|
#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 26 of file MonteDriver.hh.
Public Types | |
| typedef RunType::CondType | CondType |
| typedef RunType::SettingsType | SettingsType |
Public Member Functions | |
| MonteDriver (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) |
| Return the appropriate std::vector of conditions to visit based from settings. Use for construction. More... | |
| 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 |
| Copy of initial settings given at construction. Will expand to have MonteCarlo states dumped into it. More... | |
| 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 |
| List of specialized conditions to visit in sequential order. Does not include initial conditions. More... | |
| 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::MonteDriver< RunType >::CondType |
Definition at line 29 of file MonteDriver.hh.
| typedef RunType::SettingsType CASM::MonteDriver< RunType >::SettingsType |
Definition at line 30 of file MonteDriver.hh.
| CASM::MonteDriver< RunType >::MonteDriver | ( | PrimClex & | primclex, |
| const SettingsType & | settings, | ||
| Log & | _log, | ||
| Log & | _err_log | ||
| ) |
Constructor via MonteSettings.
Definition at line 90 of file MonteDriver.hh.
|
private |
Check for existing calculations to find starting conditions.
Checks existing files to determine where to restart a path.
Definition at line 224 of file MonteDriver.hh.
|
inlineprivate |
run in debug mode?
Definition at line 41 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 448 of file MonteDriver.hh.
| void CASM::MonteDriver< RunType >::run | ( | ) |
Run everything requested by the MonteSettings.
Run calculations for all conditions, outputting data as you finish each one.
Definition at line 110 of file MonteDriver.hh.
|
private |
Converge the MonteCarlo for conditions 'cond_index'.
Definition at line 303 of file MonteDriver.hh.
|
private |
List of specialized conditions to visit in sequential order. Does not include initial conditions.
Definition at line 74 of file MonteDriver.hh.
|
private |
run in debug mode?
Definition at line 77 of file MonteDriver.hh.
|
private |
describes where to write output
Definition at line 65 of file MonteDriver.hh.
|
private |
Specifies how to build the conditions list from the settings.
Definition at line 68 of file MonteDriver.hh.
|
private |
Enumerated configurations encountered during Monte Carlo calculations.
Definition at line 80 of file MonteDriver.hh.
|
private |
target for error messages
Definition at line 59 of file MonteDriver.hh.
|
private |
target for log messages
Definition at line 56 of file MonteDriver.hh.
|
private |
Specialized Monte Carlo object to use throughout.
Definition at line 71 of file MonteDriver.hh.
|
private |
Copy of initial settings given at construction. Will expand to have MonteCarlo states dumped into it.
Definition at line 62 of file MonteDriver.hh.