Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
sloede committed Jan 24, 2024
1 parent 545d22d commit 1ca62b1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[default.extend-words]
inout = "inout"
INOUT = "INOUT"
alle = "alle"
12 changes: 6 additions & 6 deletions src/smesh.f90
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ SUBROUTINE build_delaunay_triangulation(ve_out, data_points, shuffle, verbose)
! some degree of spatial organization, apparently not shuffling them leads to
! very short search times when starting the search at the last inserted triangle,
! while shuffling renders very few edge flips necessary in orger to
! mantain the delaunay property.
! maintain the delaunay property.

IF (present(shuffle)) THEN
IF (shuffle) THEN
Expand Down Expand Up @@ -268,7 +268,7 @@ SUBROUTINE build_delaunay_triangulation(ve_out, data_points, shuffle, verbose)
pt(:,ve(2,j)), pt(:,ve(3,j)), triangle_inside)
IF (triangle_inside) THEN
! The point has been located inside the triangle j
! Save the informations about the old triangle j and build k1 and k2
! Save the information about the old triangle j and build k1 and k2
k1 = k + 1
k2 = k + 2
! WRITE(*,"(A, I6, A, I6, A, I6, A, I6, A, I6)") "Point ", i, &
Expand Down Expand Up @@ -322,7 +322,7 @@ SUBROUTINE build_delaunay_triangulation(ve_out, data_points, shuffle, verbose)
bc(:, j) = sum(pt(:,ve(:, j)),2)*oot
bc(:,k1) = sum(pt(:,ve(:,k1)),2)*oot
bc(:,k2) = sum(pt(:,ve(:,k2)),2)*oot
k = k2 ! 3 triangles added - 1 deletd
k = k2 ! 3 triangles added - 1 deleted
END IF
END IF
IF (triangle_inside .or. triangle_edge) THEN
Expand Down Expand Up @@ -794,7 +794,7 @@ END SUBROUTINE fuzzy_test_segment

PURE SUBROUTINE onedge(p, v1, v2, v3, edge, ii)
! Tests if p lies on an edge of triangle (v1, v2, v3).
! Returns the index of the edge yelding maximum collinearity
! Returns the index of the edge yielding maximum collinearity
REAL(8), DIMENSION(2), INTENT(IN) :: p, v1, v2, v3
LOGICAL, INTENT(OUT) :: edge
INTEGER, INTENT(OUT) :: ii
Expand Down Expand Up @@ -995,7 +995,7 @@ PURE FUNCTION obtuse(po, pe1, pe2)
obtuse = sum((pe1 - po)*(pe2 - po)) .lt. 0.0d0
! in doubt we might say that pi/2 and slightly less is still
! obtuse and generate one more node, for robustness
! but maybe we introduce instability on boundig box borders?
! but maybe we introduce instability on bounding box borders?
END FUNCTION obtuse

PURE FUNCTION acute(po, pe1, pe2)
Expand All @@ -1004,7 +1004,7 @@ PURE FUNCTION acute(po, pe1, pe2)
acute = sum((pe1 - po)*(pe2 - po)) .gt. 0.0d0
! in doubt we might say that pi/2 and slightly less is still
! obtuse and generate one more node, for robustness
! but maybe we introduce instability on boundig box borders?
! but maybe we introduce instability on bounding box borders?
END FUNCTION acute

PURE FUNCTION near_obtuse(po, pe1, pe2, cosmin)
Expand Down

0 comments on commit 1ca62b1

Please sign in to comment.