Skip to content

Commit

Permalink
added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
veenstrajelmer committed Oct 28, 2023
1 parent e89d998 commit 8ddbf54
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hydrolib/core/dflowfm/net/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,12 @@ def create_triangular(self, geometry_list: mk.GeometryList) -> None:
self._process(self.get_mesh2d())

def _process(self, mesh2d_input) -> None:

# Add input
self.meshkernel.mesh2d_set(mesh2d_input)
self.meshkernel.mesh2d_set(mesh2d_input) #TODO: in this meshkernel function duplicates the amount of nodes. Seems not desireable, but more testbanks fail if commented.
# Get output
mesh2d_output = self.meshkernel.mesh2d_get()
mesh2d_output = self.meshkernel.mesh2d_get() #better results for some testcases, comment above and: mesh2d_output = mesh2d_input

# Add to mesh2d variables
self.mesh2d_node_x = mesh2d_output.node_x
self.mesh2d_node_y = mesh2d_output.node_y
Expand Down

0 comments on commit 8ddbf54

Please sign in to comment.