Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2nd order derivatives fail for high order P elements #770

Closed
fverdugo opened this issue Mar 18, 2022 · 1 comment · Fixed by #771
Closed

2nd order derivatives fail for high order P elements #770

fverdugo opened this issue Mar 18, 2022 · 1 comment · Fixed by #771
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@fverdugo
Copy link
Member

fverdugo commented Mar 18, 2022

[The code below requires PR #769]

This fails:

using Gridap

domain = (0,1,0,1)
cells = (2,2)
model = CartesianDiscreteModel(domain,cells) |> simplexify
Ω = Interior(model)
dΩ = 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)
@assert sum((tt)dΩ) < 1.0e-12

Independent actions that make the test work:

  • removing the call to simplexify
  • using m=1
  • using u(x) = sum(x)^m and ReferenceFE(lagrangian,Float64,m) (i.e., an scalar valued function)
@fverdugo fverdugo added bug Something isn't working help wanted Extra attention is needed labels Mar 18, 2022
@fverdugo
Copy link
Member Author

This might be relevant to you @oriolcg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant