Log

class Log : public feasst::AnalyzeWriteOnly

Periodically print the status of the Syste, Criteria and Trials in a one-line comma separated value format with headers.

This log file is designed more for checking status than computing ensemble averages. To compute ensemble averages, consider using a custom Analyze or accumulating the averages every trial step inside your script.

The ordering of the columns may change at any time. Thus, do not assume a particular order when analyzing the log file. Instead, use the headers to specify columns. For example, the pandas module in python is ideal for this task.

By default, the first number printed for a Trial is its Trial::acceptance.

Arguments

  • max_precision: use maximum precision if true (default: false).

  • include_bonds: if true, print bond energies (default: true).

  • Stepper arguments.

Public Functions

std::string header(const MonteCarlo &mc) const

Return the header for writing.

void initialize(MonteCarlo *mc)

Initialize and precompute before trials.

std::string write(const MonteCarlo &mc)

Perform write action.