Skip to content

Commit

Permalink
Testing the fixes for issue #770
Browse files Browse the repository at this point in the history
  • Loading branch information
fverdugo committed Mar 22, 2022
1 parent acdf47f commit 4aeb153
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
26 changes: 26 additions & 0 deletions test/GridapTests/issue_770.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
module Issue770

using Gridap
using Test

domain = (0,1,0,1)
cells = (2,2)
model = CartesianDiscreteModel(domain,cells) |> simplexify
Ω = Interior(model)
= Measure(Ω,4)
m = 2
u(x) = VectorValue(sum(x)^m, sum(x)^m)
reffe = ReferenceFE(lagrangian,VectorValue{2,Float64},m)
V = FESpace(Ω,reffe)
uh = interpolate(u,V)
t = Δ(u) - Δ(uh)
@test sum((tt)dΩ) < 1.0e-12

s(x) = sum(x)^m
reffe = ReferenceFE(lagrangian,Float64,m)
V = FESpace(Ω,reffe)
sh = interpolate(s,V)
t = Δ(s) - Δ(sh)
@test sum((tt)dΩ) < 1.0e-12

end # module
2 changes: 2 additions & 0 deletions test/GridapTests/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,6 @@ using Test

@time @testset "Issue760" begin include("issue_760.jl") end

@time @testset "Issue770" begin include("issue_770.jl") end

end # module

0 comments on commit 4aeb153

Please sign in to comment.