GPRidge v1.0.0
GPR-accelerated saddle point searches on potential energy surfaces
☾
Toggle main menu visibility
Loading...
Searching...
No Matches
NestedEngineOracle.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: MIT
2
// Copyright (c) gpridge developers
3
// See LICENSE for details.
4
5
#ifndef GPR_POTENTIALS_NESTEDENGINEORACLE_H_
6
#define GPR_POTENTIALS_NESTEDENGINEORACLE_H_
7
8
#include <cstddef>
9
#include <memory>
10
#include <string>
11
#include <vector>
12
13
#include "
ActiveGP.h
"
14
#include "
EnginePotential.h
"
15
16
namespace
pot
{
17
31
class
NestedEngineOracle
{
32
public
:
36
static
std::unique_ptr<NestedEngineOracle>
open
(
37
const
std::string&
library
,
const
std::vector<unsigned char>& config,
38
std::string& err);
39
40
~NestedEngineOracle
();
41
NestedEngineOracle
(
const
NestedEngineOracle
&) =
delete
;
42
NestedEngineOracle
&
operator=
(
const
NestedEngineOracle
&) =
delete
;
43
45
[[nodiscard]]
ActiveGP::OracleFn
asOracle
();
46
47
[[nodiscard]]
const
std::string&
library
() const noexcept;
48
49
private:
50
NestedEngineOracle
() = default;
51
52
std
::unique_ptr<
EnginePotential
> engine_;
53
};
54
60
std
::
string
engineLibraryForSpecArm
(const
std
::
string
& arm_name);
61
62
}
// namespace pot
63
64
#endif
ActiveGP.h
EnginePotential.h
pot::ActiveGP::OracleFn
std::function< int(long n_atoms, const double *positions, const int *atomic_nrs, const double *box, double *energy, double *forces)> OracleFn
Definition
ActiveGP.h:59
pot::EnginePotential
Definition
EnginePotential.h:87
pot::NestedEngineOracle::library
const std::string & library() const noexcept
Definition
NestedEngineOracle.cpp:35
pot::NestedEngineOracle::~NestedEngineOracle
~NestedEngineOracle()
pot::NestedEngineOracle::asOracle
ActiveGP::OracleFn asOracle()
Ground truth in the shape ActiveGP consumes.
Definition
NestedEngineOracle.cpp:40
pot::NestedEngineOracle::NestedEngineOracle
NestedEngineOracle(const NestedEngineOracle &)=delete
pot::NestedEngineOracle::open
static std::unique_ptr< NestedEngineOracle > open(const std::string &library, const std::vector< unsigned char > &config, std::string &err)
Definition
NestedEngineOracle.cpp:22
pot::NestedEngineOracle::operator=
NestedEngineOracle & operator=(const NestedEngineOracle &)=delete
pot
Potential wrappers and the batched oracle interface.
Definition
ProblemSetUp.h:22
pot::engineLibraryForSpecArm
std::string engineLibraryForSpecArm(const std::string &arm)
Definition
NestedEngineOracle.cpp:9
std
STL namespace.
gpr
potentials
NestedEngineOracle.h
Generated by
1.17.0
Generated by
Doxygen 1.17.0
Analytics by
Antics
provided by
TurtleTech ehf