eOn 3.2.0
Long-timescale dynamics: aKMC, NEB, parallel replica
☾
Toggle main menu visibility
Loading...
Searching...
No Matches
Job.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
*/
12
#include "
eon/Job.h
"
13
#include "
eon/BasinHoppingJob.h
"
14
#include "
eon/DynamicsJob.h
"
15
#include "
eon/FiniteDifferenceJob.h
"
16
#include "
eon/GlobalOptimizationJob.h
"
17
#include "
eon/HessianJob.h
"
18
#include "
eon/InstantonJob.h
"
19
#include "
eon/JobRegistry.h
"
20
#include "
eon/MinimizationJob.h
"
21
#include "
eon/MonteCarloJob.h
"
22
#include "
eon/NudgedElasticBandJob.h
"
23
#include "
eon/OHTSTJob.h
"
24
#include "
eon/ParallelReplicaJob.h
"
25
#include "
eon/Parameters.h
"
26
#include "
eon/PointJob.h
"
27
#include "
eon/PotRegistry.h
"
28
#include "
eon/PrefactorJob.h
"
29
#include "
eon/ProcessSearchJob.h
"
30
#include "
eon/ReplicaExchangeJob.h
"
31
#include "
eon/SaddleSearchJob.h
"
32
#include "
eon/SafeHyperJob.h
"
33
#include "
eon/StructureComparisonJob.h
"
34
#include "
eon/TADJob.h
"
35
#include "
eon/TestJob.h
"
36
37
#include <memory>
38
39
namespace
eonc
{
40
// Referenced from makeJob so MSVC does not drop this TU from a static
41
// eonclib (anonymous-namespace registrars would never run).
42
void
forceJobRegistration
() {}
43
44
size_t
Job::potRegistryForceCalls
() const noexcept {
45
if
(
const
auto
*registry =
46
dynamic_cast<
const
PotRegistry
*
>
(&
pot
->registry())) {
47
return
registry->total_force_calls();
48
}
49
return
pot
->forceCallCounter;
50
}
51
}
// namespace eonc
52
53
#ifdef WITH_GP_SURROGATE
54
#include "
eon/GPSurrogateJob.h
"
55
#endif
56
57
namespace
{
58
59
#define EON_REG_JOB(TYPE, CLS) \
60
const bool eon_reg_##CLS = [] { \
61
eonc::registerJob( \
62
eonc::JobType::TYPE, \
63
[](std::unique_ptr<eonc::Parameters> p, eonc::Runtime &rt) { \
64
return std::make_unique<eonc::CLS>(std::move(p), rt); \
65
}); \
66
return true; \
67
}()
68
69
EON_REG_JOB
(Process_Search, ProcessSearchJob);
70
EON_REG_JOB
(Saddle_Search, SaddleSearchJob);
71
EON_REG_JOB
(Minimization, MinimizationJob);
72
EON_REG_JOB
(Point, PointJob);
73
EON_REG_JOB
(Parallel_Replica, ParallelReplicaJob);
74
EON_REG_JOB
(Safe_Hyperdynamics, SafeHyperJob);
75
EON_REG_JOB
(TAD, TADJob);
76
EON_REG_JOB
(Replica_Exchange, ReplicaExchangeJob);
77
EON_REG_JOB
(Basin_Hopping, BasinHoppingJob);
78
EON_REG_JOB
(Hessian, HessianJob);
79
EON_REG_JOB
(Finite_Difference, FiniteDifferenceJob);
80
EON_REG_JOB
(Nudged_Elastic_Band, NudgedElasticBandJob);
81
EON_REG_JOB
(Dynamics, DynamicsJob);
82
EON_REG_JOB
(Prefactor, PrefactorJob);
83
EON_REG_JOB
(Global_Optimization, GlobalOptimizationJob);
84
EON_REG_JOB
(Structure_Comparison, StructureComparisonJob);
85
EON_REG_JOB
(Monte_Carlo, MonteCarloJob);
86
#ifdef WITH_GP_SURROGATE
87
EON_REG_JOB
(GP_Surrogate, GPSurrogateJob);
88
#endif
89
EON_REG_JOB
(OH_TST, OHTSTJob);
90
EON_REG_JOB
(Instanton, InstantonJob);
91
EON_REG_JOB
(Test, TestJob);
92
93
#undef EON_REG_JOB
94
95
}
// namespace
BasinHoppingJob.h
DynamicsJob.h
FiniteDifferenceJob.h
GPSurrogateJob.h
GlobalOptimizationJob.h
HessianJob.h
InstantonJob.h
JobRegistry.h
EON_REG_JOB
#define EON_REG_JOB(TYPE, CLS)
Definition
Job.cpp:59
Job.h
The job class is used to serve as an abstract class for all jobs, as well as to call a job at runtime...
MinimizationJob.h
MonteCarloJob.h
NudgedElasticBandJob.h
OHTSTJob.h
ParallelReplicaJob.h
Parameters.h
PointJob.h
PotRegistry.h
PrefactorJob.h
ProcessSearchJob.h
Finds possible escape mecahnisms from a state.
ReplicaExchangeJob.h
SaddleSearchJob.h
Finds transition states by finding saddle points on the potential energy surface.
SafeHyperJob.h
StructureComparisonJob.h
TADJob.h
TestJob.h
eonc::Job::potRegistryForceCalls
size_t potRegistryForceCalls() const noexcept
Force calls charged to pot's registry.
Definition
Job.cpp:44
eonc::Job::pot
std::shared_ptr< Potential > pot
Set when one Potential is shared across Matters, images, or a caller.
Definition
Job.h:66
eonc::PotRegistry
Definition
PotRegistry.h:62
eonc
RAII resource manager for the ARTn C library with global synchronization.
Definition
ARTnSaddleSearch.cpp:23
eonc::forceJobRegistration
void forceJobRegistration()
Definition
Job.cpp:42
client
Job.cpp
Generated by
1.17.0
Generated by
Doxygen 1.17.0
Analytics by
Antics
provided by
TurtleTech ehf