votca 2024.2-dev
Loading...
Searching...
No Matches
orb2mol.cc
Go to the documentation of this file.
1#include "orb2mol.h"
2
3#include "votca/xtp/molden.h"
4#include <boost/format.hpp>
5
6namespace votca {
7namespace xtp {
8
10
11 moldenfile_ = job_name_ + ".molden.input";
12 orbfile_ = job_name_ + ".orb";
13 xyzfile_ = job_name_ + ".xyz";
14}
15
19 log_.setCommonPreface("\n... ...");
20
21 Orbitals orbitals;
22 XTP_LOG(Log::error, log_) << "Loading data from " << orbfile_ << std::flush;
23 orbitals.ReadFromCpt(orbfile_);
24
25 XTP_LOG(Log::error, log_) << "Start parsing" << std::flush;
26
27 Molden writer(log_);
28 writer.WriteFile(moldenfile_, orbitals);
29
30 XTP_LOG(Log::error, log_) << "Done parsing \n" << std::flush;
31
32 return true;
33}
34
35} // namespace xtp
36} // namespace votca
class to manage program options with xml serialization functionality
Definition property.h:55
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 WriteFile(const std::string &filename, const Orbitals &orbitals) const
Definition molden.cc:64
std::string xyzfile_
Definition orb2mol.h:52
std::string moldenfile_
Definition orb2mol.h:50
std::string orbfile_
Definition orb2mol.h:51
void ParseOptions(const tools::Property &user_options)
Definition orb2mol.cc:9
container for molecular orbitals
Definition orbitals.h:46
void ReadFromCpt(const std::string &filename)
Definition orbitals.cc:692
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