Skip to content
Snippets Groups Projects
Commit 9ca6e4a5 authored by Vaggelis Papoutsis's avatar Vaggelis Papoutsis Committed by Mark OLESEN
Browse files

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

parent 175d35de
Branches
Tags
1 merge request!427COMP: objective manager masks regIOobject::write function (#2005)
......@@ -5,8 +5,8 @@
\\ / A nd | www.openfoam.com
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2007-2020 PCOpt/NTUA
Copyright (C) 2013-2020 FOSS GP
Copyright (C) 2007-2021 PCOpt/NTUA
Copyright (C) 2013-2021 FOSS GP
Copyright (C) 2019 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
......@@ -252,7 +252,7 @@ scalar objectiveManager::print()
}
bool objectiveManager::write
bool objectiveManager::writeObjectives
(
const scalar weightedObjective,
const bool valid
......@@ -289,7 +289,7 @@ void objectiveManager::updateAndWrite()
updateNormalizationFactor();
update();
scalar weightedObjective = print();
write(weightedObjective);
writeObjectives(weightedObjective);
}
......
......@@ -5,8 +5,8 @@
\\ / A nd | www.openfoam.com
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2007-2020 PCOpt/NTUA
Copyright (C) 2013-2020 FOSS GP
Copyright (C) 2007-2021 PCOpt/NTUA
Copyright (C) 2013-2021 FOSS GP
Copyright (C) 2019 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
......@@ -146,7 +146,7 @@ public:
scalar print();
//- Write objective function history
virtual bool write
virtual bool writeObjectives
(
const scalar weightedObjective,
const bool valid = true
......
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