Skip to content

Commit fff49f7

Browse files
shashiYingboMa
andcommitted
"fix" bigsystem
Co-authored-by: "Yingbo Ma" <[email protected]>
1 parent 1c9764e commit fff49f7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/bigsystem.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
using ModelingToolkit, LinearAlgebra, SparseArrays
2+
using Symbolics
3+
using Symbolics: scalarize
24

35
# Define the constants for the PDE
46
const α₂ = 1.0
@@ -27,6 +29,9 @@ My[end,end-1] = 2.0
2729
# Define the initial condition as normal arrays
2830
@variables du[1:N,1:N,1:3] u[1:N,1:N,1:3] MyA[1:N,1:N] AMx[1:N,1:N] DA[1:N,1:N]
2931

32+
du,u,MyA,AMx,DA = scalarize.((du,u,MyA,AMx,DA))
33+
@show typeof.((du,u,MyA,AMx,DA))
34+
3035
# Define the discretized PDE as an ODE function
3136
function f(du,u,p,t)
3237
A = @view u[:,:,1]

0 commit comments

Comments
 (0)