@@ -227,7 +227,7 @@ contains
227
227
228
228
integer :: i, j, k, l, iunit, iostat, nVertices
229
229
230
- t_vec3 , allocatable :: vertices(:, :)
230
+ real (wp), dimension ( 1 : 3 ) , allocatable :: vertices(:, :)
231
231
232
232
character (80 ) :: line
233
233
@@ -488,8 +488,8 @@ contains
488
488
impure function f_model_is_inside (model , point , spacing , spc ) result(fraction)
489
489
490
490
type(t_model), intent (in ) :: model
491
- t_vec3 , intent (in ) :: point
492
- t_vec3 , intent (in ) :: spacing
491
+ real (wp), dimension ( 1 : 3 ) , intent (in ) :: point
492
+ real (wp), dimension ( 1 : 3 ) , intent (in ) :: spacing
493
493
integer , intent (in ) :: spc
494
494
495
495
real (wp) :: fraction
@@ -727,7 +727,7 @@ contains
727
727
logical , intent (inout ) :: interpolate !< Logical indicator of interpolation
728
728
integer , intent (in ) :: boundary_edge_count !< Number of boundary edges
729
729
real (wp), intent (in ), dimension (1 :boundary_edge_count, 1 :3 , 1 :2 ) :: boundary_v
730
- t_vec3 , intent (in ) :: spacing
730
+ real (wp), dimension ( 1 : 3 ) , intent (in ) :: spacing
731
731
732
732
real (wp) :: l1, cell_width !< Length of each boundary edge and cell width
733
733
integer :: j !< Boundary edge index iterator
@@ -756,8 +756,8 @@ contains
756
756
pure subroutine f_check_interpolation_3D (model , spacing , interpolate )
757
757
logical , intent (inout ) :: interpolate
758
758
type(t_model), intent (in ) :: model
759
- t_vec3 , intent (in ) :: spacing
760
- t_vec3 :: edge_l
759
+ real (wp), dimension ( 1 : 3 ) , intent (in ) :: spacing
760
+ real (wp), dimension ( 1 : 3 ) :: edge_l
761
761
real (wp) :: cell_width
762
762
real (wp), dimension (1 :3 , 1 :3 ) :: tri_v
763
763
integer :: i, j !< Loop iterator
@@ -801,7 +801,7 @@ contains
801
801
!! @param total_vertices Total number of vertices after interpolation
802
802
pure subroutine f_interpolate_2D (boundary_v , boundary_edge_count , spacing , interpolated_boundary_v , total_vertices )
803
803
real (wp), intent (in ), dimension (:, :, :) :: boundary_v
804
- t_vec3 , intent (in ) :: spacing
804
+ real (wp), dimension ( 1 : 3 ) , intent (in ) :: spacing
805
805
real (wp), allocatable, intent (inout ), dimension (:, :) :: interpolated_boundary_v
806
806
807
807
integer , intent (inout ) :: total_vertices, boundary_edge_count
@@ -893,15 +893,15 @@ contains
893
893
!! @param interpolated_boundary_v Output all the boundary vertices of the interpolated 3D model
894
894
!! @param total_vertices Total number of vertices after interpolation
895
895
impure subroutine f_interpolate_3D (model , spacing , interpolated_boundary_v , total_vertices )
896
- t_vec3 , intent (in ) :: spacing
896
+ real (wp), dimension ( 1 : 3 ) , intent (in ) :: spacing
897
897
type(t_model), intent (in ) :: model
898
898
real (wp), allocatable, intent (inout ), dimension (:, :) :: interpolated_boundary_v
899
899
integer , intent (out ) :: total_vertices
900
900
901
901
integer :: i, j, k, num_triangles, num_segments, num_inner_vertices
902
902
real (wp), dimension (1 :3 , 1 :3 ) :: tri
903
- t_vec3 :: edge_del, cell_area
904
- t_vec3 :: bary_coord !< Barycentric coordinates
903
+ real (wp), dimension ( 1 : 3 ) :: edge_del, cell_area
904
+ real (wp), dimension ( 1 : 3 ) :: bary_coord !< Barycentric coordinates
905
905
real (wp) :: edge_length, cell_width, cell_area_min, tri_area
906
906
907
907
! Number of triangles in the model
@@ -1044,15 +1044,15 @@ contains
1044
1044
!! @param distance The output levelset distance
1045
1045
pure subroutine f_distance_normals_3D (model , point , normals , distance )
1046
1046
type(t_model), intent (IN ) :: model
1047
- t_vec3 , intent (in ) :: point
1048
- t_vec3 , intent (out ) :: normals
1047
+ real (wp), dimension ( 1 : 3 ) , intent (in ) :: point
1048
+ real (wp), dimension ( 1 : 3 ) , intent (out ) :: normals
1049
1049
real (wp), intent (out ) :: distance
1050
1050
1051
1051
real (wp), dimension (1 :3 , 1 :3 ) :: tri
1052
1052
real (wp) :: dist_min, dist_t_min
1053
1053
real (wp) :: dist_min_normal, dist_buffer_normal
1054
- t_vec3 :: midp !< Centers of the triangle facets
1055
- t_vec3 :: dist_buffer !< Distance between the cell center and the vertices
1054
+ real (wp), dimension ( 1 : 3 ) :: midp !< Centers of the triangle facets
1055
+ real (wp), dimension ( 1 : 3 ) :: dist_buffer !< Distance between the cell center and the vertices
1056
1056
integer :: i, j, tri_idx !< Iterator
1057
1057
1058
1058
dist_min = 1.e12_wp
@@ -1107,7 +1107,7 @@ contains
1107
1107
pure function f_distance (boundary_v , boundary_edge_count , point ) result(distance)
1108
1108
integer , intent (in ) :: boundary_edge_count
1109
1109
real (wp), intent (in ), dimension (1 :boundary_edge_count, 1 :3 , 1 :2 ) :: boundary_v
1110
- t_vec3 , intent (in ) :: point
1110
+ real (wp), dimension ( 1 : 3 ) , intent (in ) :: point
1111
1111
1112
1112
integer :: i
1113
1113
real (wp) :: dist_buffer1, dist_buffer2
@@ -1137,8 +1137,8 @@ contains
1137
1137
pure subroutine f_normals (boundary_v , boundary_edge_count , point , normals )
1138
1138
integer , intent (in ) :: boundary_edge_count
1139
1139
real (wp), intent (in ), dimension (1 :boundary_edge_count, 1 :3 , 1 :2 ) :: boundary_v
1140
- t_vec3 , intent (in ) :: point
1141
- t_vec3 , intent (out ) :: normals
1140
+ real (wp), dimension ( 1 : 3 ) , intent (in ) :: point
1141
+ real (wp), dimension ( 1 : 3 ) , intent (out ) :: normals
1142
1142
1143
1143
integer :: i, idx_buffer
1144
1144
real (wp) :: dist_min, dist_buffer
@@ -1172,7 +1172,7 @@ contains
1172
1172
pure subroutine f_tri_area (tri , tri_area )
1173
1173
real (wp), dimension (1 :3 , 1 :3 ), intent (in ) :: tri
1174
1174
real (wp), intent (out ) :: tri_area
1175
- t_vec3 :: AB, AC, cross
1175
+ real (wp), dimension ( 1 : 3 ) :: AB, AC, cross
1176
1176
integer :: i !< Loop iterator
1177
1177
1178
1178
do i = 1 , 3
@@ -1195,7 +1195,7 @@ contains
1195
1195
pure function f_interpolated_distance (interpolated_boundary_v , total_vertices , point ) result(distance)
1196
1196
integer , intent (in ) :: total_vertices
1197
1197
real (wp), intent (in ), dimension (1 :total_vertices, 1 :3 ) :: interpolated_boundary_v
1198
- t_vec3 , intent (in ) :: point
1198
+ real (wp), dimension ( 1 : 3 ) , intent (in ) :: point
1199
1199
1200
1200
integer :: i !< Loop iterator
1201
1201
real (wp) :: dist_buffer, min_dist
0 commit comments