Skip to content

Commit

Permalink
fix one crash and introduce another
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Tomin authored and Pavel Tomin committed Dec 16, 2024
1 parent 3e0357e commit 1388970
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void importEmbeddedFractureNetwork( string const & embeddedSurfaceBlockName,
//1.Get EDFM vertices
vtkUnstructuredGrid * grid = vtkUnstructuredGrid::SafeDownCast( embeddedSurfaceMesh );
vtkPoints * const nodes = grid->GetPoints();
vtkIdType numNodes = nodes->GetNumberOfPoints();
vtkIdType numNodes = nodes ? nodes->GetNumberOfPoints() : 0;

ArrayOfArrays< localIndex > elem2dToNodes( numEdfmFracs );
for( vtkIdType i = 0; i < numEdfmFracs; ++i )
Expand Down

0 comments on commit 1388970

Please sign in to comment.