From 5b3998c1a74b6538d9095144b7491f99ec0a2108 Mon Sep 17 00:00:00 2001 From: Jacques Franc <49998870+jafranc@users.noreply.github.com> Date: Wed, 11 Feb 2026 10:26:21 +0100 Subject: [PATCH 1/3] Fix dtype in newPointsArray initialization Updated newPointsArray initialization to preserve dtype. --- mesh-doctor/src/geos/mesh_doctor/actions/generateFractures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesh-doctor/src/geos/mesh_doctor/actions/generateFractures.py b/mesh-doctor/src/geos/mesh_doctor/actions/generateFractures.py index a243198d..5e136fa9 100644 --- a/mesh-doctor/src/geos/mesh_doctor/actions/generateFractures.py +++ b/mesh-doctor/src/geos/mesh_doctor/actions/generateFractures.py @@ -326,7 +326,7 @@ def __copyFieldsSplitMesh( oldMesh: vtkUnstructuredGrid, splitMesh: vtkUnstructu # Reshape oldPointsArray if it is 1-dimensional if len( oldPointsArray.shape ) == 1: oldPointsArray = oldPointsArray.reshape( ( oldNrows, 1 ) ) - newPointsArray = empty( ( newNumberPoints, oldNcols ) ) + newPointsArray = empty( ( newNumberPoints, oldNcols ), dtype = oldPointArray.dtype ) newPointsArray[ :oldNrows, : ] = oldPointsArray for newAndOldId in addedPointsWithOldId: newPointsArray[ newAndOldId[ 0 ], : ] = oldPointsArray[ newAndOldId[ 1 ], : ] From 3011956702d3f593a512b63fb78d5f21603f3304 Mon Sep 17 00:00:00 2001 From: Jian Huang <53012159+jhuang2601@users.noreply.github.com> Date: Fri, 13 Feb 2026 12:58:28 -0600 Subject: [PATCH 2/3] Update mesh-doctor/src/geos/mesh_doctor/actions/generateFractures.py --- mesh-doctor/src/geos/mesh_doctor/actions/generateFractures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesh-doctor/src/geos/mesh_doctor/actions/generateFractures.py b/mesh-doctor/src/geos/mesh_doctor/actions/generateFractures.py index 5e136fa9..dc93e07d 100644 --- a/mesh-doctor/src/geos/mesh_doctor/actions/generateFractures.py +++ b/mesh-doctor/src/geos/mesh_doctor/actions/generateFractures.py @@ -326,7 +326,7 @@ def __copyFieldsSplitMesh( oldMesh: vtkUnstructuredGrid, splitMesh: vtkUnstructu # Reshape oldPointsArray if it is 1-dimensional if len( oldPointsArray.shape ) == 1: oldPointsArray = oldPointsArray.reshape( ( oldNrows, 1 ) ) - newPointsArray = empty( ( newNumberPoints, oldNcols ), dtype = oldPointArray.dtype ) + newPointsArray = empty( ( newNumberPoints, oldNcols ), dtype = oldPointsArray.dtype ) newPointsArray[ :oldNrows, : ] = oldPointsArray for newAndOldId in addedPointsWithOldId: newPointsArray[ newAndOldId[ 0 ], : ] = oldPointsArray[ newAndOldId[ 1 ], : ] From e857b6801a55d18ebf0a2029502b8ce72f1ced90 Mon Sep 17 00:00:00 2001 From: Jian Huang <53012159+jhuang2601@users.noreply.github.com> Date: Fri, 13 Feb 2026 13:18:46 -0600 Subject: [PATCH 3/3] Update mesh-doctor/src/geos/mesh_doctor/actions/generateFractures.py --- mesh-doctor/src/geos/mesh_doctor/actions/generateFractures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesh-doctor/src/geos/mesh_doctor/actions/generateFractures.py b/mesh-doctor/src/geos/mesh_doctor/actions/generateFractures.py index dc93e07d..58a8385e 100644 --- a/mesh-doctor/src/geos/mesh_doctor/actions/generateFractures.py +++ b/mesh-doctor/src/geos/mesh_doctor/actions/generateFractures.py @@ -326,7 +326,7 @@ def __copyFieldsSplitMesh( oldMesh: vtkUnstructuredGrid, splitMesh: vtkUnstructu # Reshape oldPointsArray if it is 1-dimensional if len( oldPointsArray.shape ) == 1: oldPointsArray = oldPointsArray.reshape( ( oldNrows, 1 ) ) - newPointsArray = empty( ( newNumberPoints, oldNcols ), dtype = oldPointsArray.dtype ) + newPointsArray = empty( ( newNumberPoints, oldNcols ), dtype=oldPointsArray.dtype ) newPointsArray[ :oldNrows, : ] = oldPointsArray for newAndOldId in addedPointsWithOldId: newPointsArray[ newAndOldId[ 0 ], : ] = oldPointsArray[ newAndOldId[ 1 ], : ]