Commit 8ee21f2b authored by mmpe's avatar mmpe


parent d305da8e
Pipeline #16698 passed with stages
in 3 minutes and 38 seconds
"""TOPFARM OpenMDAO Problem.
This module contains the OpenMDAO problem that can be used for
......@@ -487,9 +486,9 @@ class TopFarmProblem(Problem):
return np.array([self[k] for k in [topfarm.x_key, topfarm.y_key]]).T
def smart_start(self, XX, YY, ZZ, radius=None):
assert XX.shape == YY.shape
if len(XX.shape) == 1:
XX, YY = np.meshgrid(XX, YY)
assert XX.shape == YY.shape
ZZ_is_func = hasattr(ZZ, '__call__')
spacing_comp_lst = [c for c in self.model.constraint_components if isinstance(c, SpacingComp)]
if len(spacing_comp_lst) == 1:
Markdown is supported
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