From 9e3882a8993305547f5651109a8a04ee1415525b Mon Sep 17 00:00:00 2001 From: Slaven Peles Date: Tue, 16 Mar 2021 13:17:34 -0700 Subject: [PATCH] Fix bug in adjoint example: Partition forward integration into 100 steps when computing adjoint. --- Examples/AdjointSensitivity/AdjointSensitivity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Examples/AdjointSensitivity/AdjointSensitivity.cpp b/Examples/AdjointSensitivity/AdjointSensitivity.cpp index df9420b..9c35d20 100644 --- a/Examples/AdjointSensitivity/AdjointSensitivity.cpp +++ b/Examples/AdjointSensitivity/AdjointSensitivity.cpp @@ -169,7 +169,7 @@ int main() idas->getSavedInitialCondition(); idas->initializeSimulation(t_init); idas->initializeQuadrature(); - idas->runForwardSimulation(t_final); + idas->runForwardSimulation(t_final, 100); std::cout << "\n\nCost of forward simulation for adjoint\n" << "sensitivity analysis:\n\n";