1 #ifndef CASM_GrandCanonicalIO_HH
2 #define CASM_GrandCanonicalIO_HH
7 template <
typename T,
typename U>
8 class GenericDatumFormatter;
23 class GrandCanonicalConditions;
28 const GrandCanonical &mc);
32 const GrandCanonical &mc,
const double &phi_LTE1,
36 jsonParser &
to_json(
const GrandCanonicalConditions &conditions,
41 const jsonParser &json);
45 const double &phi_LTE1);
50 const double &phi_LTE1,
const std::string &
configname,
ConfigIO::GenericConfigFormatter< std::string > configname()
Constructs DataFormmaterDictionary containing all Configuration DatumFormatters.
void from_json(CanonicalConditions &conditions, const PrimClex &primclex, const jsonParser &json)
Read CanonicalConditions from JSON format.
const MonteCarlo * ConstMonteCarloPtr
const pointer to const MonteCarlo
DataFormatter< ConstMonteCarloPtr > make_lte_results_formatter(const GrandCanonical &mc, const double &phi_LTE1, const std::string &configname)
Make a results formatter.
jsonParser & to_json(const CanonicalConditions &conditions, jsonParser &json)
Store CanonicalConditions in JSON format.
void write_lte_results(const MonteSettings &settings, const GrandCanonical &mc, const double &phi_LTE1, const std::string &configname, Log &_log)
Will create new file or append to existing results file the results of the latest run.
DataFormatter< ConstMonteCarloPtr > make_results_formatter(const Canonical &mc)
Make a LTE results formatter.
GenericDatumFormatter< double, ConstMonteCarloPtr > GrandCanonicalLTEFormatter(const double &phi_LTE1)
Print single spin flip LTE.