@@ -1028,7 +1028,7 @@ contains
10281028 else
10291029 call f_check_interpolation_2D(boundary_v, boundary_edge_count, (/dx_local, dy_local, 0._wp/), interpolate)
10301030 end if
1031- interpolate = .false.
1031+ print *, interpolate
10321032
10331033 ! Show the number of edges and boundary edges in 2D STL models
10341034 if (proc_rank == 0 .and. p == 0) then
@@ -1151,12 +1151,13 @@ contains
11511151 gpu_boundary_edge_count(pid) = models(pid)%boundary_edge_count
11521152 gpu_total_vertices(pid) = models(pid)%total_vertices
11531153 end if
1154- if (allocated(models(pid)%boundary_v)) then
1154+ if (allocated(models(pid)%boundary_v) .and. p == 0) then
1155+ print *, size(models(pid)%boundary_v, 1), size(models(pid)%boundary_v, 2), size(models(pid)%boundary_v, 3)
11551156 gpu_boundary_v(1:size(models(pid)%boundary_v, 1), &
11561157 1:size(models(pid)%boundary_v, 2), &
11571158 1:size(models(pid)%boundary_v, 3), pid) = models(pid)%boundary_v
11581159 end if
1159- if (allocated(models(pid)%interpolated_boundary_v)) then
1160+ if (allocated(models(pid)%interpolated_boundary_v) .and. gpu_interpolate(pid) == 1 ) then
11601161 gpu_interpolated_boundary_v(1:size(models(pid)%interpolated_boundary_v, 1), &
11611162 1:size(models(pid)%interpolated_boundary_v, 2), pid) = models(pid)%interpolated_boundary_v
11621163 end if
0 commit comments