Skip to content

Commit 9be9a70

Browse files
committed
Fix iso2dfd
1 parent 9f0fe8b commit 9be9a70

File tree

1 file changed

+3
-2
lines changed
  • DirectProgramming/C++SYCL/StructuredGrids/iso2dfd_dpcpp/src

1 file changed

+3
-2
lines changed

DirectProgramming/C++SYCL/StructuredGrids/iso2dfd_dpcpp/src/iso2dfd.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ bool WithinEpsilon(float* output, float* reference, const size_t dim_x,
149149
}
150150

151151
err_file.close();
152-
norm2 = sqrt(norm2);
152+
norm2 = std::sqrt(norm2);
153153
if (error) printf("error (Euclidean norm): %.9e\n", norm2);
154154
return error;
155155
}
@@ -195,7 +195,8 @@ void Iso2dfdIterationCpu(float* next, float* prev, float* vel,
195195
*
196196
*/
197197
void Iso2dfdIterationGlobal(id<2> it, float* next, float* prev,
198-
float* vel, const float dtDIVdxy, int n_rows,
198+
multi_ptr<const float, access::address_space::global_space, (sycl::access::decorated)2> vel,
199+
const float dtDIVdxy, int n_rows,
199200
int n_cols) {
200201
float value = 0.0;
201202

0 commit comments

Comments
 (0)