We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c2effa commit d82581cCopy full SHA for d82581c
test/NNPDE_tests.jl
@@ -187,10 +187,10 @@ end
187
phi = discretization.phi
188
189
xs, ys = [infimum(d.domain):0.01:supremum(d.domain) for d in domains]
190
- analytic_sol_func(x, y) = (sinpi(x) * sinpi(y)) / (2pi^2)
+ analytic = (x, y) -> (sinpi(x) * sinpi(y)) / (2pi^2)
191
192
u_predict = [first(phi([x, y], res.u)) for x in xs for y in ys]
193
- u_real = [analytic_sol_func(x, y) for x in xs for y in ys]
+ u_real = [analytic(x, y) for x in xs for y in ys]
194
195
@test u_predict≈u_real atol=2.0
196
end
0 commit comments