teqp
0.23.1
Loading...
Searching...
No Matches
interface
CPP
model_factory_SAFTVRMie.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"
// Contains (optionally) macros to disable various models
5
6
#ifndef DISABLE_SAFTVRMIE
7
#include "
teqp/models/saftvrmie.hpp
"
8
#endif
9
10
namespace
teqp
{
11
namespace
cppinterface
{
12
#if defined(DISABLE_SAFTVRMIE)
13
std::unique_ptr<teqp::cppinterface::AbstractModel>
make_SAFTVRMie
(
const
nlohmann::json &){
14
throw
teqp::NotImplementedError(
"The SAFTVRMie model has been disabled"
);
15
}
16
#else
17
std::unique_ptr<teqp::cppinterface::AbstractModel>
make_SAFTVRMie
(
const
nlohmann::json &j){
18
return
teqp::cppinterface::adapter::make_owned
(
SAFTVRMie::SAFTVRMiefactory
(j));
19
}
20
#endif
21
}
22
}
deriv_adapter.hpp
teqp::SAFTVRMie::SAFTVRMiefactory
auto SAFTVRMiefactory(const nlohmann::json &spec)
Definition
saftvrmie.hpp:1152
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_SAFTVRMie
std::unique_ptr< teqp::cppinterface::AbstractModel > make_SAFTVRMie(const nlohmann::json &j)
Definition
model_factory_SAFTVRMie.cpp:17
teqp
Definition
ancillary_builder.hpp:8
saftvrmie.hpp
teqpcpp.hpp
Generated by
1.13.2