mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: adjointSolverManager - corrected indexing. Fixes #1381
This commit is contained in:
@ -260,7 +260,7 @@ Foam::scalar Foam::adjointSolverManager::objectiveValue()
|
|||||||
for (const label solveri : objectiveSolverIDs_)
|
for (const label solveri : objectiveSolverIDs_)
|
||||||
{
|
{
|
||||||
objectiveManager& objManager =
|
objectiveManager& objManager =
|
||||||
adjointSolvers_[objectiveSolverIDs_[solveri]].getObjectiveManager();
|
adjointSolvers_[solveri].getObjectiveManager();
|
||||||
objValue += objManager.print();
|
objValue += objManager.print();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user