From e591cf130c5c1416e82b862e47f4f7ecaedda9d5 Mon Sep 17 00:00:00 2001
From: Vaggelis Papoutsis <vaggelisp@gmail.com>
Date: Mon, 16 Dec 2019 21:05:55 +0200
Subject: [PATCH] ENH: objectiveDict is appended with objective name

to allow for continuation with averaging, line search and multiple
objectives
---
 .../adjoint/objectives/objective/objective.C                  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/optimisation/adjointOptimisation/adjoint/objectives/objective/objective.C b/src/optimisation/adjointOptimisation/adjoint/objectives/objective/objective.C
index 669999ec4ab..a9a910d6a7a 100644
--- a/src/optimisation/adjointOptimisation/adjoint/objectives/objective/objective.C
+++ b/src/optimisation/adjointOptimisation/adjoint/objectives/objective/objective.C
@@ -162,7 +162,7 @@ objective::objective
     // Read JMean from dictionary, if present
     IOobject headObjectiveIODict
     (
-        "objectiveDict",
+        "objectiveDict" + objectiveName_,
         mesh_.time().timeName(),
         "uniform",
         mesh_,
@@ -654,7 +654,7 @@ void objective::writeMeanValue() const
     (
         IOobject
         (
-            "objectiveDict",
+            "objectiveDict" + objectiveName_,
             mesh_.time().timeName(),
             "uniform",
             mesh_,
-- 
GitLab