Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
palathark
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
orestis.malaspin
palathark
Commits
0e502ee1
Commit
0e502ee1
authored
5 years ago
by
orestis.malaspin
Browse files
Options
Downloads
Patches
Plain Diff
compilation error with opencl so rverting
parent
fa27e3bf
Branches
one_dim_t_tuples_as_arrays
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/liblbm.fut
+13
-13
13 additions, 13 deletions
src/liblbm.fut
with
13 additions
and
13 deletions
src/liblbm.fut
+
13
−
13
View file @
0e502ee1
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment