Skip to content
Snippets Groups Projects
Commit 0b22c568 authored by Mads M. Pedersen's avatar Mads M. Pedersen
Browse files

changed the order of two lines to avoid problems when using convex hull

parent a8eff8c3
No related branches found
No related tags found
1 merge request!94Handle disabled mpi
...@@ -9,8 +9,8 @@ class BoundaryComp(ExplicitComponent): ...@@ -9,8 +9,8 @@ class BoundaryComp(ExplicitComponent):
super(BoundaryComp, self).__init__() super(BoundaryComp, self).__init__()
self.nTurbines = nTurbines self.nTurbines = nTurbines
self.vertices = np.array(vertices) self.vertices = np.array(vertices)
self.nVertices = self.vertices.shape[0]
self.calculate_boundary_and_normals(vertices, boundary_type) self.calculate_boundary_and_normals(vertices, boundary_type)
self.nVertices = self.vertices.shape[0]
self.calculate_gradients() self.calculate_gradients()
def calculate_boundary_and_normals(self, vertices, boundary_type): def calculate_boundary_and_normals(self, vertices, boundary_type):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment