Skip to content
Snippets Groups Projects
Commit 0e502ee1 authored by orestis.malaspin's avatar orestis.malaspin
Browse files

compilation error with opencl so rverting

parent fa27e3bf
No related tags found
No related merge requests found
......@@ -164,20 +164,20 @@ let collision [n] (f_in: [9][n]f64)(tau: f64): [9][n]f64 =
-- propagation phase
let propagation [n] (f_out: [9][n]f64)(nx: i32)(ny: i32): *[9][n]f64 =
unsafe
-- unflatten(9)(n) (flatten_3d (tabulate_3d 9 nx ny (\i x y ->
-- let next_x = (x-(i32.f64 c[i].1) + nx) % nx
-- let next_y = (y-(i32.f64 c[i].2) + ny) % ny
unflatten(9)(n) (flatten_3d (tabulate_3d 9 nx ny (\i x y ->
let next_x = (x-(i32.f64 c[i].1) + nx) % nx
let next_y = (y-(i32.f64 c[i].2) + ny) % ny
-- in f_out[i, (next_y + ny * next_x)]
-- )))
map2 (\ci f ->
flatten (
tabulate_rotate_2d nx ny (i32.f64 ci.1) (i32.f64 ci.2) (\x y ->
f[y + ny * x]
)
)
) c f_out
in f_out[i, (next_y + ny * next_x)]
)))
-- map2 (\ci f ->
-- flatten (
-- tabulate_rotate_2d nx ny (i32.f64 ci.1) (i32.f64 ci.2) (\x y ->
-- f[y + ny * x]
-- )
-- )
-- ) c f_out
-- executes one iteration of Lattice-Boltzmann
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment