Skip to content

Commit 8aa559d

Browse files
committed
runic...
1 parent cc6c2f7 commit 8aa559d

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

examples/Example115_HeterogeneousCatalysis1D.jl

+11-11
Original file line numberDiff line numberDiff line change
@@ -63,23 +63,23 @@ using OrdinaryDiffEqRosenbrock
6363
using SciMLBase: NoInit
6464

6565
function main(;
66-
n = 10, Plotter = nothing, verbose = false, tend = 1,
67-
unknown_storage = :sparse, assembly = :edgewise,
68-
diffeq = false,
69-
switchbc = false
66+
n = 10, Plotter = nothing, verbose = false, tend = 1,
67+
unknown_storage = :sparse, assembly = :edgewise,
68+
diffeq = false,
69+
switchbc = false
7070
)
7171
h = 1.0 / convert(Float64, n)
7272
X = collect(0.0:h:1.0)
7373
N = length(X)
7474

75-
iCat=1
76-
iBulk=2
77-
inodeCat=1
75+
iCat = 1
76+
iBulk = 2
77+
inodeCat = 1
7878
if switchbc
7979
iCat, iBulk = iBulk, iCat
80-
inodeCat=N
80+
inodeCat = N
8181
end
82-
82+
8383
grid = simplexgrid(X)
8484
## By default, \Gamma_1 at X[1] and \Gamma_2 is at X[end]
8585

@@ -203,7 +203,7 @@ function main(;
203203
)
204204
end
205205

206-
return tsol[iC, inodeCat, end]
206+
return tsol[iC, inodeCat, end]
207207
end
208208

209209
using Test
@@ -214,7 +214,7 @@ function runtests()
214214
for assembly in (:edgewise, :cellwise)
215215
for switchbc in (false, true)
216216
@test isapprox(main(; unknown_storage, assembly, switchbc), testval; rtol = 1.0e-12)
217-
@test isapprox(main(; diffeq=true, unknown_storage, assembly, switchbc), testvaldiffeq; rtol = 1.0e-12)
217+
@test isapprox(main(; diffeq = true, unknown_storage, assembly, switchbc), testvaldiffeq; rtol = 1.0e-12)
218218
end
219219
end
220220
end

0 commit comments

Comments
 (0)