From 621399e1003240f62ab25fa162fc2e87cc73bc36 Mon Sep 17 00:00:00 2001 From: Anne-Liza <a.m.r.m.bruggeman@student.tudelft.nl> Date: Sat, 10 Nov 2018 12:32:31 +0100 Subject: [PATCH] Another bug fix in function roles Former-commit-id: cb1d4634301527d7e2f1b2720a587bd6e6a6a5a0 --- kadmos/graph/graph_data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kadmos/graph/graph_data.py b/kadmos/graph/graph_data.py index 32890737b..da15a6398 100644 --- a/kadmos/graph/graph_data.py +++ b/kadmos/graph/graph_data.py @@ -6599,8 +6599,8 @@ class MdaoDataGraph(DataGraph, MdaoMixin): # If there is no converger node or if the converger is an optimizer (IDF), then change the coupled functions # to post-coupling functions if converger is None or self.nodes[converger]['architecture_role'] == self.ARCHITECTURE_ROLES_FUNS[1] or \ - (self.graph['problem_formulation']['mdao_architecture'] == self.OPTIONS_ARCHITECTURES[2] and - 'distr_function_ordering' in self.graph): + (any(self.SUBSYS_PREFIX + self.CONVERGER_STRING in node for node in self.nodes) and not + self.SYS_PREFIX + self.CONVERGER_STRING in self.nodes): if 'distr_function_ordering' in self.graph: distr_function_ordering = self.graph['distr_function_ordering'] post_desvars_functions = copy.deepcopy(distr_function_ordering[0][self.FUNCTION_ROLES[4]]) -- GitLab