Loading...
Searching...
No Matches
NudgedElasticBandJob.h
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*/
12#pragma once
13#include "EonLogger.h"
14
15#include "Job.h"
16#include "Matter.h"
17#include "NudgedElasticBand.h"
18#include "Parameters.h"
19#include "PrfoRefine.h"
20
21#include <optional>
22
23namespace eonc {
24
25class NudgedElasticBandJob : public Job {
26
27public:
28 NudgedElasticBandJob(std::unique_ptr<Parameters> parameters, Runtime &rt)
29 : Job(std::move(parameters), rt), fCallsNEB{0} {}
30 ~NudgedElasticBandJob(void) = default;
31 std::vector<std::string> run(void);
32
33private:
34 // functions
38
39 // variables
40 std::vector<std::string> returnFiles;
41 size_t fCallsNEB;
42 std::optional<PrfoRefineResult> refined_;
43 size_t fCallsRefine_{0};
45};
46
47} // namespace eonc
The job class is used to serve as an abstract class for all jobs, as well as to call a job at runtime...
Job(std::unique_ptr< Parameters > parameters, Runtime &rt, ExclusivePotential)
Definition Job.h:71
NudgedElasticBandJob(std::unique_ptr< Parameters > parameters, Runtime &rt)
std::vector< std::string > run(void)
Virtual run; used solely for dynamic dispatch.
~NudgedElasticBandJob(void)=default
void printEndState(NudgedElasticBand::NEBStatus status)
std::vector< std::string > returnFiles
void saveData(NudgedElasticBand::NEBStatus status, NudgedElasticBand *neb)
std::optional< PrfoRefineResult > refined_
void refineClimbingImage(NudgedElasticBand &neb)
Move-only composition root for process resources (dlopen loaders and the potential registry).
Definition Runtime.h:27
RAII resource manager for the ARTn C library with global synchronization.
RAII helper for class-scoped logging.
Definition EonLogger.h:238