Skip to content

Commit

Permalink
set types for mesh2d more strict, hopefully unix test also passes
Browse files Browse the repository at this point in the history
  • Loading branch information
veenstrajelmer committed Oct 30, 2023
1 parent e5aefb7 commit f77b695
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hydrolib/core/dflowfm/net/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ def read_file(self, file_path: Path) -> None:

def _set_mesh2d(self) -> None:
mesh2d = mk.Mesh2d(
node_x=self.mesh2d_node_x.astype(float),
node_y=self.mesh2d_node_y.astype(float),
edge_nodes=self.mesh2d_edge_nodes.ravel().astype(int),
node_x=self.mesh2d_node_x.astype(np.float64),
node_y=self.mesh2d_node_y.astype(np.float64),
edge_nodes=self.mesh2d_edge_nodes.ravel().astype(np.int32),
)

self.meshkernel.mesh2d_set(mesh2d)
Expand Down

0 comments on commit f77b695

Please sign in to comment.