votca 2026-dev
Loading...
Searching...
No Matches
dftgwbse.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_DFTGWBSE_H
22#define VOTCA_XTP_DFTGWBSE_H
23
24// Standard includes
25#include <cstdio>
26
27// Local VOTCA includes
28#include "votca/xtp/logger.h"
29#include "votca/xtp/qmtool.h"
30
31namespace votca {
32namespace xtp {
33
34class DftGwBse final : public QMTool {
35 public:
36 DftGwBse() = default;
37
38 ~DftGwBse() = default;
39
40 std::string Identify() const { return "dftgwbse"; }
41
42 protected:
43 void ParseOptions(const tools::Property &user_options);
44 bool Run();
45
46 private:
47 std::string guess_file_;
48 // Separate from guess_file_ above: guess_file_ loads BOTH geometry
49 // and MOs from the same .orb checkpoint (via Orbitals::ReadFromCpt),
50 // which cannot represent "new geometry, but warm-started MOs from a
51 // previous, different geometry" -- exactly what a geometry
52 // optimization needs between steps. moguess_file_ loads ONLY the
53 // MOs from a separate .orb file, leaving the geometry itself to come
54 // from xyzfile_ as usual. See this class's own Run() for how the
55 // two are combined.
56 std::string moguess_file_;
57 std::string mpsfile_;
58
59 std::string xyzfile_;
60 std::string xml_output_; // .xml output
61 std::string archive_file_; // .orb file to parse to
62
66
68};
69
70} // namespace xtp
71} // namespace votca
72
73#endif // VOTCA_XTP_DFTGWBSE_H
class to manage program options with xml serialization functionality
Definition property.h:55
void ParseOptions(const tools::Property &user_options)
Definition dftgwbse.cc:33
std::string guess_file_
Definition dftgwbse.h:47
tools::Property geoopt_options_
Definition dftgwbse.h:65
tools::Property package_options_
Definition dftgwbse.h:63
std::string mpsfile_
Definition dftgwbse.h:57
std::string archive_file_
Definition dftgwbse.h:61
std::string moguess_file_
Definition dftgwbse.h:56
std::string xml_output_
Definition dftgwbse.h:60
tools::Property gwbseengine_options_
Definition dftgwbse.h:64
std::string Identify() const
Calculator name.
Definition dftgwbse.h:40
std::string xyzfile_
Definition dftgwbse.h:59
Logger is used for thread-safe output of messages.
Definition logger.h:164
Provides a means for comparing floating point numbers.
Definition basebead.h:33