[Reactor] Make ReactorNet uncopyable
This commit is contained in:
parent
b7fad42cda
commit
50ad75f2a2
2 changed files with 5 additions and 9 deletions
|
|
@ -24,7 +24,8 @@ class ReactorNet : public FuncEval
|
|||
{
|
||||
public:
|
||||
ReactorNet();
|
||||
virtual ~ReactorNet();
|
||||
virtual ~ReactorNet() {};
|
||||
ReactorNet(const ReactorNet&) = delete;
|
||||
|
||||
//! @name Methods to set up a simulation.
|
||||
//@{
|
||||
|
|
@ -216,7 +217,7 @@ protected:
|
|||
void initialize();
|
||||
|
||||
std::vector<Reactor*> m_reactors;
|
||||
Integrator* m_integ;
|
||||
std::unique_ptr<Integrator> m_integ;
|
||||
doublereal m_time;
|
||||
bool m_init;
|
||||
bool m_integrator_init; //!< True if integrator initialization is current
|
||||
|
|
|
|||
|
|
@ -15,13 +15,13 @@ namespace Cantera
|
|||
{
|
||||
|
||||
ReactorNet::ReactorNet() :
|
||||
m_integ(0), m_time(0.0), m_init(false), m_integrator_init(false),
|
||||
m_integ(newIntegrator("CVODE")),
|
||||
m_time(0.0), m_init(false), m_integrator_init(false),
|
||||
m_nv(0), m_rtol(1.0e-9), m_rtolsens(1.0e-4),
|
||||
m_atols(1.0e-15), m_atolsens(1.0e-6),
|
||||
m_maxstep(0.0), m_maxErrTestFails(0),
|
||||
m_verbose(false)
|
||||
{
|
||||
m_integ = newIntegrator("CVODE");
|
||||
suppressErrors(true);
|
||||
|
||||
// use backward differencing, with a full Jacobian computed
|
||||
|
|
@ -31,11 +31,6 @@ ReactorNet::ReactorNet() :
|
|||
m_integ->setIterator(Newton_Iter);
|
||||
}
|
||||
|
||||
ReactorNet::~ReactorNet()
|
||||
{
|
||||
delete m_integ;
|
||||
}
|
||||
|
||||
void ReactorNet::setInitialTime(double time)
|
||||
{
|
||||
m_time = time;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue