Skip to content

Commit

Permalink
eltype
Browse files Browse the repository at this point in the history
  • Loading branch information
vpuri3 committed Aug 2, 2023
1 parent f305897 commit 33ec7f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/diffusion_fourier/datagen.jl
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ function combine_data1D(data)

N, K = size(x)

x1 = zeros(3, N, K) # x, ν, f
u1 = zeros(1, N, K) # u
x1 = zeros(Float32, 3, N, K) # x, ν, f
u1 = zeros(Float32, 1, N, K) # u

x1[1, :, :] = x
x1[2, :, :] = ν
Expand All @@ -181,8 +181,8 @@ function combine_data2D(data, K = size(data[1], 2))
rand(1:Kmax, K)
end

x1 = zeros(4, n, n, K) # x, y, ν, f
u1 = zeros(1, n, n, K) # u
x1 = zeros(Float32, 4, n, n, K) # x, y, ν, f
u1 = zeros(Float32, 1, n, n, K) # u

x1[1, :, :, :] = x[:, Ks] |> vec
x1[2, :, :, :] = y[:, Ks] |> vec
Expand Down

0 comments on commit 33ec7f1

Please sign in to comment.