Loading...
Searching...
No Matches
StructureComparisonJob.cpp
Go to the documentation of this file.
1/*
2** This file is part of eOn.
3**
4** SPDX-License-Identifier: BSD-3-Clause
5**
6** Copyright (c) 2010--present, eOn Development Team
7** All rights reserved.
8**
9** Repo:
10** https://github.com/TheochemUI/eOn
11*/
13#include "eon/EonLogger.h"
14#include "eon/HelperFunctions.h"
15#include "eon/Matter.h"
16#include "eon/Optimizer.h"
17#include <stdexcept>
18
19std::vector<std::string> StructureComparisonJob::run() {
20 std::vector<std::string> returnFiles;
21
22 auto matter1 = std::make_unique<Matter>(pot, params);
23 if (!eonc::io::io_ok(matter1->con2matter("matter1.con"))) {
24 EONC_LOG_CRITICAL("Failed to load matter1.con");
25 throw std::runtime_error("failed to load matter1.con");
26 }
27
28 return returnFiles;
29}
#define EONC_LOG_CRITICAL(...)
Definition EonLogger.h:268
The optimizer class is used to serve as an abstract class for all optimizers, as well as to call an o...
std::vector< std::string > run(void)
Virtual run; used solely for dynamic dispatch.
std::shared_ptr< Potential > pot
Definition Job.h:55
Parameters params
Definition Job.h:54
constexpr bool io_ok(IoStatus s) noexcept
Definition ConFileIO.h:38