Skip to content

Commit 3f973d5

Browse files
committed
Set Options after sensinit
1 parent 3ce5e03 commit 3f973d5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/libcadet/SimulatorImpl.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ namespace cadet
560560
IDASetMaxNonlinIters(_idaMemBlock, _maxNewtonIter);
561561
IDASetMaxErrTestFails(_idaMemBlock, _maxErrorTestFail);
562562
IDASetMaxConvFails(_idaMemBlock, _maxConvTestFail);
563-
//IDASetSensMaxNonlinIters(_idaMemBlock, _maxNewtonIterSens);
563+
564564

565565

566566
// Allocate memory for AD if required
@@ -646,6 +646,9 @@ namespace cadet
646646

647647
// Activate sensitivity error control
648648
IDASetSensErrCon(_idaMemBlock, _sensErrorTestEnabled);
649+
650+
// Set Maximum of Sens Non lin Iters
651+
IDASetSensMaxNonlinIters(_idaMemBlock, _maxNewtonIterSens);
649652
}
650653

651654
void Simulator::initializeFwdSensitivities()

0 commit comments

Comments
 (0)