Skip to content

Commit

Permalink
Merge pull request #151 from BAMresearch:143-fenics-version-0.7.0-dan…
Browse files Browse the repository at this point in the history
…ielandresarcones

Modifications functionspaces in LinearElasticity
  • Loading branch information
danielandresarcones authored Oct 23, 2023
2 parents 89dd2b5 + f52356a commit e233316
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ def setup(self) -> None:
)

# define function space ets.
self.V = df.fem.VectorFunctionSpace(self.mesh, ("Lagrange", self.p["degree"])) # 2 for quadratic elements
self.V_scalar = df.fem.FunctionSpace(self.mesh, ("Lagrange", self.p["degree"]))
self.V = df.fem.functionspace(self.mesh, ("Lagrange", self.p["degree"], (self.mesh.geometry.dim,))) # 2 for quadratic elements
self.V_scalar = df.fem.functionspace(self.mesh, ("Lagrange", self.p["degree"], (1,)))

# Define variational problem
self.u_trial = ufl.TrialFunction(self.V)
Expand Down

0 comments on commit e233316

Please sign in to comment.