Skip to content

Commit f043319

Browse files
author
Sathvik Bhagavan
committed
test: update pdesystem tests by using vector of symbols for parameters instead of vector of pairs
1 parent 1b11b47 commit f043319

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/pde.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ domains = [t ∈ (0.0, 1.0),
1616
analytic = [u(t, x) ~ -h * x * (x - 1) * sin(x) * exp(-2 * h * t)]
1717
analytic_function = (ps, t, x) -> -ps[1] * x * (x - 1) * sin(x) * exp(-2 * ps[1] * t)
1818

19-
@named pdesys = PDESystem(eq, bcs, domains, [t, x], [u], [h => 1], analytic = analytic)
19+
@named pdesys = PDESystem(eq, bcs, domains, [t, x], [u], [h], analytic = analytic)
2020
@show pdesys
2121

2222
@test all(isequal.(independent_variables(pdesys), [t, x]))

test/symbolic_indexing_interface.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ domains = [t ∈ (0.0, 1.0),
7272
analytic = [u(t, x) ~ -h * x * (x - 1) * sin(x) * exp(-2 * h * t)]
7373
analytic_function = (ps, t, x) -> -ps[1] * x * (x - 1) * sin(x) * exp(-2 * ps[1] * t)
7474

75-
@named pdesys = PDESystem(eq, bcs, domains, [t, x], [u], [h => 1], analytic = analytic)
75+
@named pdesys = PDESystem(eq, bcs, domains, [t, x], [u], [h], analytic = analytic)
7676

77-
@test isequal(pdesys.ps, [h => 1])
77+
@test isequal(pdesys.ps, [h])
7878
@test isequal(parameter_symbols(pdesys), [h])
7979
@test isequal(parameters(pdesys), [h])

0 commit comments

Comments
 (0)