Skip to content

Commit 6c20303

Browse files
Update case3.jl
Dot operator was resulting in error in julia 1.6 ```julia julia> # Generate data sets u0_list .= 10 .^ (rand(Float32, (n_exp, ns)) * -3); ERROR: UndefVarError: u0_list not defined Stacktrace: [1] top-level scope @ none:1 ```
1 parent 5d80ae1 commit 6c20303

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

case3/case3.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function trueODEfunc(dydt, y, k, t)
103103
end
104104

105105
# Generate data sets
106-
u0_list .= 10 .^ (rand(Float32, (n_exp, ns)) * -3);
106+
u0_list = 10 .^ (rand(Float32, (n_exp, ns)) * -3);
107107
@. u0_list[[1, 2, end], [3, 5, 7, 9]] .*= 0.f0;
108108
# @. u0_list[:, [3, 5, 7, 9]] .*= 0.f0;
109109
# u0_list = rand(Float32, (n_exp, ns));
@@ -294,4 +294,4 @@ end
294294

295295
# @show i_exp
296296
# display_grad(grad)
297-
# end
297+
# end

0 commit comments

Comments
 (0)