25#include <boost/algorithm/string.hpp>
26#include <boost/filesystem.hpp>
27#include <boost/format.hpp>
40 const std::string job_name = options.
get(
"temporary_file").
as<std::string>();
92 std::vector<std::string> cleanup_info =
94 for (
const std::string& substring : cleanup_info) {
95 if (substring ==
"log") {
97 remove(file_name.c_str());
118 }
catch (std::runtime_error& error) {
Electronic ground-state via Density-Functional Theory.
void setExternalcharges(std::vector< std::unique_ptr< StaticSite > > *externalsites)
bool EvaluateTruncatedActiveRegion(Orbitals &trunc_orb)
void setLogger(Logger *pLog)
Attach the logger used for SCF progress and diagnostics.
bool EvaluateActiveRegion(Orbitals &orb)
void Initialize(tools::Property &options)
Read DFT, grid, and SCF settings from the user options tree.
bool Evaluate(Orbitals &orb)
Container for molecular orbitals and derived one-particle data.
double getDFTTotalEnergy() const
Return the stored total DFT energy.
void ReadFromCpt(const std::string &filename)
Read the orbital container from a checkpoint file on disk.
std::string log_file_name_
std::vector< std::unique_ptr< StaticSite > > externalsites_
std::string mo_file_name_
bool ParseLogFile(Orbitals &orbitals) final
void ParseSpecificOptions(const tools::Property &options) final
std::string getPackageName() const final
bool WriteInputFile(const Orbitals &orbitals) final
writes a coordinate file WITHOUT taking into account PBCs
bool ParseMOsFile(Orbitals &orbitals) final
bool RunActiveDFT() final
#define XTP_LOG(level, log)
Charge transport classes.
Provides a means for comparing floating point numbers.