teqp
0.23.1
Loading...
Searching...
No Matches
interface
CPP
model_factory_LKP.cpp
Go to the documentation of this file.
1
#include "
teqp/cpp/teqpcpp.hpp
"
2
#include "
teqp/cpp/deriv_adapter.hpp
"
3
4
#include "model_flags.hpp"
5
6
#ifndef DISABLE_LKP
7
#include "
teqp/models/LKP.hpp
"
8
#endif
9
10
namespace
teqp
{
11
namespace
cppinterface
{
12
#ifndef DISABLE_LKP
13
std::unique_ptr<teqp::cppinterface::AbstractModel>
make_LKP
(
const
nlohmann::json &j){
14
return
teqp::cppinterface::adapter::make_owned
(
LKP::make_LKPMix
(j));
15
}
16
#else
17
std::unique_ptr<teqp::cppinterface::AbstractModel>
make_LKP
(
const
nlohmann::json &){
18
throw
teqp::NotImplementedError
(
"The multifluid+association model has been disabled"
);
19
}
20
#endif
21
}
22
}
LKP.hpp
teqp::NotImplementedError
Definition
exceptions.hpp:45
deriv_adapter.hpp
teqp::LKP::make_LKPMix
auto make_LKPMix(const nlohmann::json &j)
Definition
LKP.hpp:100
teqp::cppinterface::adapter::make_owned
auto make_owned(const TemplatedModel &tmodel)
Definition
deriv_adapter.hpp:259
teqp::cppinterface
Definition
deriv_adapter.hpp:15
teqp::cppinterface::make_LKP
std::unique_ptr< teqp::cppinterface::AbstractModel > make_LKP(const nlohmann::json &j)
Definition
model_factory_LKP.cpp:13
teqp
Definition
ancillary_builder.hpp:8
teqpcpp.hpp
Generated by
1.13.2