Skip to content

Commit

Permalink
Fix inconsistent ufl import in biharmonic example
Browse files Browse the repository at this point in the history
  • Loading branch information
schnellerhase committed Nov 29, 2024
1 parent 08f3c55 commit 2910d49
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions python/demo/demo_biharmonic.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,25 @@

# +
import dolfinx
import ufl
from dolfinx import fem, io, mesh, plot
from dolfinx.fem.petsc import LinearProblem
from dolfinx.mesh import CellType, GhostMode
from ufl import CellDiameter, FacetNormal, avg, div, dS, dx, grad, inner, jump, pi, sin
from ufl import (
CellDiameter,
FacetNormal,
SpatialCoordinate,
TestFunction,
TrialFunction,
avg,
div,
dS,
dx,
grad,
inner,
jump,
pi,
sin,
)

# -

Expand Down Expand Up @@ -207,9 +221,9 @@

# +
# Define variational problem
u = ufl.TrialFunction(V)
v = ufl.TestFunction(V)
x = ufl.SpatialCoordinate(msh)
u = TrialFunction(V)
v = TestFunction(V)
x = SpatialCoordinate(msh)
f = 4.0 * pi**4 * sin(pi * x[0]) * sin(pi * x[1])

a = (
Expand Down

0 comments on commit 2910d49

Please sign in to comment.