File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -99,12 +99,13 @@ namespace AnalysisManager
99
99
std::vector<bool >& tag = model_->tag ();
100
100
if (static_cast <IdxT>(tag.size ()) == model_->size ())
101
101
{
102
- tag_ = N_VClone (yy_);
102
+ N_Vector tag_ = N_VClone (yy_);
103
103
checkAllocation ((void *) tag_, " N_VClone" );
104
104
model_->tagDifferentiable ();
105
105
copyVec (tag, tag_);
106
106
107
107
retval = IDASetId (solver_, tag_);
108
+ N_VDestroy (tag_);
108
109
checkOutput (retval, " IDASetId" );
109
110
retval = IDASetSuppressAlg (solver_, SUNTRUE);
110
111
checkOutput (retval, " IDASetSuppressAlg" );
Original file line number Diff line number Diff line change @@ -175,7 +175,6 @@ namespace AnalysisManager
175
175
176
176
N_Vector yy_{}; // /< Solution vector
177
177
N_Vector yp_{}; // /< Solution derivatives vector
178
- N_Vector tag_{}; // /< Tags differential variables
179
178
N_Vector q_{}; // /< Integrand vector
180
179
181
180
N_Vector yy0_{}; // /< Storage for initial values
You can’t perform that action at this time.
0 commit comments