Commit 7e5fe133 authored by Andrew Heather's avatar Andrew Heather

BUG: adjointSolverManager - corrected indexing. Fixes #1381

parent 402fb826
......@@ -260,7 +260,7 @@ Foam::scalar Foam::adjointSolverManager::objectiveValue()
for (const label solveri : objectiveSolverIDs_)
{
objectiveManager& objManager =
adjointSolvers_[objectiveSolverIDs_[solveri]].getObjectiveManager();
adjointSolvers_[solveri].getObjectiveManager();
objValue += objManager.print();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment