From 8d6edf0fd84d0011b73f5ecfc994084f1b93e029 Mon Sep 17 00:00:00 2001 From: "Mads M. Pedersen" <mmpe@dtu.dk> Date: Wed, 16 May 2018 07:49:13 +0200 Subject: [PATCH] changed from "rev" to "fwd" Total Derivative Solve --- topfarm/topfarm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/topfarm/topfarm.py b/topfarm/topfarm.py index 66826287..5aa08aef 100644 --- a/topfarm/topfarm.py +++ b/topfarm/topfarm.py @@ -54,7 +54,7 @@ class TopFarm(object): prob.model.add_constraint('wtSeparationSquared', lower=np.zeros(int(((n_wt - 1.) * n_wt / 2.))) + (min_spacing)**2) prob.model.add_constraint('boundaryDistances', lower=np.zeros(self.boundardy_comp.nVertices * n_wt)) - prob.setup() + prob.setup(check=True, mode='fwd') def check(self, all=False, tol=1e-3): """Check gradient computations""" -- GitLab