teqp 0.23.1
Loading...
Searching...
No Matches
model_factory_CPA.cpp
Go to the documentation of this file.
3
4#include "model_flags.hpp" // Contains (optionally) macros to disable various models
5
6#ifndef DISABLE_CPA
7#include "teqp/models/CPA.hpp"
8#endif
9
10namespace teqp{
11 namespace cppinterface{
13#ifndef DISABLE_CPA
14 std::unique_ptr<teqp::cppinterface::AbstractModel> make_CPA(const nlohmann::json &spec){
15 return make_owned(CPA::CPAfactory(spec));
16 }
17#else
18 std::unique_ptr<teqp::cppinterface::AbstractModel> make_CPA(const nlohmann::json &){
19 throw teqp::NotImplementedError("The CPA model has been disabled");
20 }
21#endif
22 }
23}
auto CPAfactory(const nlohmann::json &j)
Definition CPA.hpp:301
auto make_owned(const TemplatedModel &tmodel)
std::unique_ptr< teqp::cppinterface::AbstractModel > make_CPA(const nlohmann::json &spec)