teqp
0.23.1
Loading...
Searching...
No Matches
interface
CPP
model_factory_advancedmixcubic.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_ADVANCEDMIXCUBIC
7
#include "
teqp/models/cubics/advancedmixing_cubics.hpp
"
8
#endif
9
10
namespace
teqp
{
11
namespace
cppinterface
{
12
#ifndef DISABLE_ADVANCEDMIXCUBIC
13
std::unique_ptr<teqp::cppinterface::AbstractModel>
make_advancedPRaEres
(
const
nlohmann::json &j){
14
return
teqp::cppinterface::adapter::make_owned
(
make_AdvancedPRaEres
(j));
15
}
16
#else
17
std::unique_ptr<teqp::cppinterface::AbstractModel>
make_advancedPRaEres
(
const
nlohmann::json &){
18
throw
teqp::NotImplementedError
(
"The advanced cubic mixing rules model has been disabled"
);
19
}
20
#endif
21
}
22
}
advancedmixing_cubics.hpp
teqp::NotImplementedError
Definition
exceptions.hpp:45
deriv_adapter.hpp
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_advancedPRaEres
std::unique_ptr< teqp::cppinterface::AbstractModel > make_advancedPRaEres(const nlohmann::json &j)
Definition
model_factory_advancedmixcubic.cpp:13
teqp
Definition
ancillary_builder.hpp:8
teqp::make_AdvancedPRaEres
auto make_AdvancedPRaEres(const nlohmann::json &j)
Definition
advancedmixing_cubics.hpp:222
teqpcpp.hpp
Generated by
1.13.2