21#ifndef VOTCA_XTP_LOG2MPS_H
22#define VOTCA_XTP_LOG2MPS_H
25#include <boost/format.hpp>
40 std::string
Identify()
const {
return "log2mps"; }
59 throw std::runtime_error(
60 "XTP has no log file. For xtp package just run the partialcharges tool "
85 std::unique_ptr<QMPackage> qmpack =
88 qmpack->setRunDir(
".");
97 if (atoms.
size() < 1) {
98 throw std::runtime_error(
"ERROR No charges extracted from " +
logfile_);
103 <<
" QM atoms, total charge Q = " << Q << std::flush;
106 "::LOG2MPS " + (boost::format(
"(log-file='%1$s' : %2$d QM atoms)") %
double CalcTotalQ() const
void WriteMPS(std::string filename, std::string header) const
void ParseOptions(const tools::Property &user_options)
std::string Identify() const
Calculator name.
Logger is used for thread-safe output of messages.
void setReportLevel(Log::Level ReportLevel)
void setMultithreading(bool maverick)
void setCommonPreface(const std::string &preface)
#define XTP_LOG(level, log)
base class for all analysis tools
static Level current_level