-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,25 @@ | ||
using KitBase, CUDA | ||
|
||
u = collect(-5.0:0.0001:5.0) | ||
primL = [1.0, 0.0, 0.5] | ||
primR = [0.125, 0.0, 0.625] | ||
dt = 1.0 | ||
|
||
fL = maxwellian(u, primL) | ||
fR = maxwellian(u, primR) | ||
ff = similar(fL) | ||
sfL = zero(fL) | ||
sfR = zero(fR) | ||
|
||
@time flux_kfvs!(ff, fL, fR, u, dt, sfL, sfR) | ||
```0.001932 seconds (6 allocations: 2.289 MiB)``` | ||
|
||
u = collect(-5.0:0.0001:5.0) |> CuArray | ||
fL = maxwellian(u, primL) | ||
fR = maxwellian(u, primR) | ||
ff = similar(fL) | ||
sfL = zero(fL) | ||
sfR = zero(fR) | ||
|
||
@time flux_kfvs!(ff, fL, fR, u, dt, sfL, sfR) | ||
```0.000219 seconds (203 allocations: 15.125 KiB)``` |
This file was deleted.
Oops, something went wrong.