@@ -227,7 +227,7 @@ contains
227227
228228 integer :: i, j, k, l, iunit, iostat, nVertices
229229
230- t_vec3 , allocatable :: vertices(:, :)
230+ real (wp), dimension ( 1 : 3 ) , allocatable :: vertices(:, :)
231231
232232 character (80 ) :: line
233233
@@ -488,8 +488,8 @@ contains
488488 impure function f_model_is_inside (model , point , spacing , spc ) result(fraction)
489489
490490 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
493493 integer , intent (in ) :: spc
494494
495495 real (wp) :: fraction
@@ -727,7 +727,7 @@ contains
727727 logical , intent (inout ) :: interpolate !< Logical indicator of interpolation
728728 integer , intent (in ) :: boundary_edge_count !< Number of boundary edges
729729 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
731731
732732 real (wp) :: l1, cell_width !< Length of each boundary edge and cell width
733733 integer :: j !< Boundary edge index iterator
@@ -756,8 +756,8 @@ contains
756756 pure subroutine f_check_interpolation_3D (model , spacing , interpolate )
757757 logical , intent (inout ) :: interpolate
758758 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
761761 real (wp) :: cell_width
762762 real (wp), dimension (1 :3 , 1 :3 ) :: tri_v
763763 integer :: i, j !< Loop iterator
@@ -801,7 +801,7 @@ contains
801801 !! @param total_vertices Total number of vertices after interpolation
802802 pure subroutine f_interpolate_2D (boundary_v , boundary_edge_count , spacing , interpolated_boundary_v , total_vertices )
803803 real (wp), intent (in ), dimension (:, :, :) :: boundary_v
804- t_vec3 , intent (in ) :: spacing
804+ real (wp), dimension ( 1 : 3 ) , intent (in ) :: spacing
805805 real (wp), allocatable, intent (inout ), dimension (:, :) :: interpolated_boundary_v
806806
807807 integer , intent (inout ) :: total_vertices, boundary_edge_count
@@ -893,15 +893,15 @@ contains
893893 !! @param interpolated_boundary_v Output all the boundary vertices of the interpolated 3D model
894894 !! @param total_vertices Total number of vertices after interpolation
895895 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
897897 type(t_model), intent (in ) :: model
898898 real (wp), allocatable, intent (inout ), dimension (:, :) :: interpolated_boundary_v
899899 integer , intent (out ) :: total_vertices
900900
901901 integer :: i, j, k, num_triangles, num_segments, num_inner_vertices
902902 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
905905 real (wp) :: edge_length, cell_width, cell_area_min, tri_area
906906
907907 ! Number of triangles in the model
@@ -1044,15 +1044,15 @@ contains
10441044 !! @param distance The output levelset distance
10451045 pure subroutine f_distance_normals_3D (model , point , normals , distance )
10461046 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
10491049 real (wp), intent (out ) :: distance
10501050
10511051 real (wp), dimension (1 :3 , 1 :3 ) :: tri
10521052 real (wp) :: dist_min, dist_t_min
10531053 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
10561056 integer :: i, j, tri_idx !< Iterator
10571057
10581058 dist_min = 1.e12_wp
@@ -1107,7 +1107,7 @@ contains
11071107 pure function f_distance (boundary_v , boundary_edge_count , point ) result(distance)
11081108 integer , intent (in ) :: boundary_edge_count
11091109 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
11111111
11121112 integer :: i
11131113 real (wp) :: dist_buffer1, dist_buffer2
@@ -1137,8 +1137,8 @@ contains
11371137 pure subroutine f_normals (boundary_v , boundary_edge_count , point , normals )
11381138 integer , intent (in ) :: boundary_edge_count
11391139 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
11421142
11431143 integer :: i, idx_buffer
11441144 real (wp) :: dist_min, dist_buffer
@@ -1172,7 +1172,7 @@ contains
11721172 pure subroutine f_tri_area (tri , tri_area )
11731173 real (wp), dimension (1 :3 , 1 :3 ), intent (in ) :: tri
11741174 real (wp), intent (out ) :: tri_area
1175- t_vec3 :: AB, AC, cross
1175+ real (wp), dimension ( 1 : 3 ) :: AB, AC, cross
11761176 integer :: i !< Loop iterator
11771177
11781178 do i = 1 , 3
@@ -1195,7 +1195,7 @@ contains
11951195 pure function f_interpolated_distance (interpolated_boundary_v , total_vertices , point ) result(distance)
11961196 integer , intent (in ) :: total_vertices
11971197 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
11991199
12001200 integer :: i !< Loop iterator
12011201 real (wp) :: dist_buffer, min_dist
0 commit comments