votca 2024.2-dev
Loading...
Searching...
No Matches
eqm.h
Go to the documentation of this file.
1/*
2 * Copyright 2009-2020 The VOTCA Development Team
3 * (http://www.votca.org)
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License")
6 *
7 * You may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 *
18 */
19
20#pragma once
21#ifndef VOTCA_XTP_EQM_H
22#define VOTCA_XTP_EQM_H
23
24// Local VOTCA includes
25#include "votca/xtp/gwbse.h"
28#include "votca/xtp/segment.h"
29
30namespace votca {
31namespace xtp {
32
41class EQM final : public ParallelXJobCalc<std::vector<Job> > {
42 public:
43 std::string Identify() const { return "eqm"; }
44
45 Job::JobResult EvalJob(const Topology &top, Job &job, QMThread &opThread);
46
47 void CleanUp() { ; }
48 void WriteJobFile(const Topology &top);
49 void ReadJobFile(Topology &) { return; }
50
51 protected:
52 void ParseSpecificOptions(const tools::Property &user_options);
53
54 private:
55 void WriteLoggerToFile(const std::string &logfile, Logger &logger);
56
57 void SetJobToFailed(Job::JobResult &jres, Logger &pLog,
58 const std::string &errormessage);
59
63
64 // what to do
65 bool do_dft_input_ = false;
66 bool do_dft_run_ = false;
67 bool do_dft_parse_ = false;
68 bool do_gwbse_ = false;
69 bool do_esp_ = false;
70};
71
72} // namespace xtp
73} // namespace votca
74
75#endif // VOTCA_XTP_EQM_H
class to manage program options with xml serialization functionality
Definition property.h:55
Run DFT/GWBSE calculations.
Definition eqm.h:41
bool do_dft_run_
Definition eqm.h:66
void WriteJobFile(const Topology &top)
Definition eqm.cc:61
tools::Property package_options_
Definition eqm.h:60
void SetJobToFailed(Job::JobResult &jres, Logger &pLog, const std::string &errormessage)
Definition eqm.cc:93
void WriteLoggerToFile(const std::string &logfile, Logger &logger)
Definition eqm.cc:101
void CleanUp()
Definition eqm.h:47
bool do_esp_
Definition eqm.h:69
bool do_gwbse_
Definition eqm.h:68
Job::JobResult EvalJob(const Topology &top, Job &job, QMThread &opThread)
Definition eqm.cc:111
void ReadJobFile(Topology &)
Definition eqm.h:49
tools::Property esp_options_
Definition eqm.h:62
bool do_dft_parse_
Definition eqm.h:67
tools::Property gwbse_options_
Definition eqm.h:61
void ParseSpecificOptions(const tools::Property &user_options)
Definition eqm.cc:38
bool do_dft_input_
Definition eqm.h:65
std::string Identify() const
Calculator name.
Definition eqm.h:43
Logger is used for thread-safe output of messages.
Definition logger.h:164
Container for segments and box and atoms.
Definition topology.h:41
base class for all analysis tools
Definition basebead.h:33