votca 2024.2-dev
Loading...
Searching...
No Matches
mol2orb.cc
Go to the documentation of this file.
1#include "mol2orb.h"
2
3// Third party includes
4#include <boost/algorithm/string.hpp>
5
6// Local VOTCA includes
7#include "votca/xtp/molden.h"
10
11namespace votca {
12namespace xtp {
13
15
16 moldenfile_ = job_name_ + ".molden.input";
17 orbfile_ = job_name_ + ".orb";
18
19 basisset_name_ = options.get(".basisset").as<std::string>();
20 aux_basisset_name_ = options.get(".auxbasisset").as<std::string>();
21}
22
26 log_.setCommonPreface("\n... ...");
27
28 Orbitals orbitals;
29
30 Molden molden(log_);
32 molden.parseMoldenFile(moldenfile_, orbitals);
33
34 // Save orbitals object
35 XTP_LOG(Log::error, log_) << "Saving data to " << orbfile_ << std::flush;
36 orbitals.WriteToCpt(orbfile_);
37 XTP_LOG(Log::error, log_) << "Done parsing\n" << std::flush;
38 return true;
39}
40
41} // namespace xtp
42} // namespace votca
class to manage program options with xml serialization functionality
Definition property.h:55
Property & get(const std::string &key)
get existing property
Definition property.cc:79
T as() const
return value as type
Definition property.h:283
void setReportLevel(Log::Level ReportLevel)
Definition logger.h:185
void setMultithreading(bool maverick)
Definition logger.h:186
void setCommonPreface(const std::string &preface)
Definition logger.h:198
void ParseOptions(const tools::Property &user_options)
Definition mol2orb.cc:14
std::string basisset_name_
Definition mol2orb.h:48
std::string moldenfile_
Definition mol2orb.h:46
std::string aux_basisset_name_
Definition mol2orb.h:49
std::string orbfile_
Definition mol2orb.h:47
void parseMoldenFile(const std::string &filename, Orbitals &orbitals) const
Definition molden.cc:245
void setBasissetInfo(const std::string &basisset_name, const std::string &aux_basisset_name="")
Definition molden.h:41
container for molecular orbitals
Definition orbitals.h:46
void WriteToCpt(const std::string &filename) const
Definition orbitals.cc:615
std::string job_name_
Definition qmtool.h:50
#define XTP_LOG(level, log)
Definition logger.h:40
base class for all analysis tools
Definition basebead.h:33
static Level current_level
Definition globals.h:30