From f52356afe527fc3383c3d71e377de7fa4be2da72 Mon Sep 17 00:00:00 2001 From: darcones Date: Mon, 23 Oct 2023 12:35:17 +0200 Subject: [PATCH] Modifications functionspaces in LinearElasticity --- .../finite_element_problem/linear_elasticity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fenicsxconcrete/finite_element_problem/linear_elasticity.py b/src/fenicsxconcrete/finite_element_problem/linear_elasticity.py index dd6621f..6c9878f 100644 --- a/src/fenicsxconcrete/finite_element_problem/linear_elasticity.py +++ b/src/fenicsxconcrete/finite_element_problem/linear_elasticity.py @@ -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)