From 9c11baa10b10bbcda17baee8391743f4b88e997a Mon Sep 17 00:00:00 2001 From: smartalecH Date: Tue, 7 Dec 2021 13:39:48 -0500 Subject: [PATCH] fix for arrays --- python/adjoint/objective.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/adjoint/objective.py b/python/adjoint/objective.py index 9789d94b8..cd7d143d4 100644 --- a/python/adjoint/objective.py +++ b/python/adjoint/objective.py @@ -44,7 +44,7 @@ def place_adjoint_source(self, dJ): def get_evaluation(self): """Evaluates the objective quantity.""" - if self._eval: + if self._eval is not None: return self._eval else: raise RuntimeError(