Skip to content

Commit 278fd5b

Browse files
authored
Fix vertex resolution in partitioner and joiner (#180)
* Set vertex resolution in partitioner/joiner to double * Fix second occurrence in mesh joiner
1 parent d26499d commit 278fd5b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/precice-aste-join

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ class MeshJoiner:
144144
logger.info("Starting partition-wise mesh merge")
145145
joined_mesh = vtk.vtkUnstructuredGrid()
146146
joined_points = vtk.vtkPoints()
147+
joined_points.SetDataTypeToDouble()
147148
joined_data_arrays = None
148149
joined_cells = vtk.vtkCellArray()
149150
joined_cell_types = []
@@ -231,6 +232,7 @@ class MeshJoiner:
231232
# Initialize Joined Mesh
232233
joined_mesh = vtk.vtkUnstructuredGrid()
233234
joined_points = vtk.vtkPoints()
235+
joined_points.SetDataTypeToDouble()
234236
joined_points.SetNumberOfPoints(size)
235237
joined_data_arrays = None
236238
joined_cells = vtk.vtkCellArray()

src/precice-aste-partition

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,7 @@ class MeshPartitioner:
496496

497497
vtk_grid = vtk.vtkUnstructuredGrid()
498498
vtkpoints = vtk.vtkPoints()
499+
vtkpoints.SetDataTypeToDouble()
499500
vtkpoints.SetNumberOfPoints(len(points))
500501
for id, point in enumerate(points):
501502
vtkpoints.SetPoint(id, point)

0 commit comments

Comments
 (0)