Skip to content
Snippets Groups Projects
Commit b2819ac3 authored by Vaggelis Papoutsis's avatar Vaggelis Papoutsis
Browse files

COMP: objectiveManager::write was hiding regIOobject::write (see #2005)

parent 9b0f1b67
No related branches found
No related tags found
No related merge requests found
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
\\ / A nd | www.openfoam.com \\ / A nd | www.openfoam.com
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Copyright (C) 2007-2020 PCOpt/NTUA Copyright (C) 2007-2021 PCOpt/NTUA
Copyright (C) 2013-2020 FOSS GP Copyright (C) 2013-2021 FOSS GP
Copyright (C) 2019 OpenCFD Ltd. Copyright (C) 2019 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
...@@ -252,7 +252,7 @@ scalar objectiveManager::print() ...@@ -252,7 +252,7 @@ scalar objectiveManager::print()
} }
bool objectiveManager::write bool objectiveManager::writeObjectives
( (
const scalar weightedObjective, const scalar weightedObjective,
const bool valid const bool valid
...@@ -289,7 +289,7 @@ void objectiveManager::updateAndWrite() ...@@ -289,7 +289,7 @@ void objectiveManager::updateAndWrite()
updateNormalizationFactor(); updateNormalizationFactor();
update(); update();
scalar weightedObjective = print(); scalar weightedObjective = print();
write(weightedObjective); writeObjectives(weightedObjective);
} }
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
\\ / A nd | www.openfoam.com \\ / A nd | www.openfoam.com
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Copyright (C) 2007-2020 PCOpt/NTUA Copyright (C) 2007-2021 PCOpt/NTUA
Copyright (C) 2013-2020 FOSS GP Copyright (C) 2013-2021 FOSS GP
Copyright (C) 2019 OpenCFD Ltd. Copyright (C) 2019 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
...@@ -146,7 +146,7 @@ public: ...@@ -146,7 +146,7 @@ public:
scalar print(); scalar print();
//- Write objective function history //- Write objective function history
virtual bool write virtual bool writeObjectives
( (
const scalar weightedObjective, const scalar weightedObjective,
const bool valid = true const bool valid = true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment