From cfccea99f13929229ba50cfe72d9aa9ce84c2044 Mon Sep 17 00:00:00 2001 From: Dominic Kempf <dominic.kempf@iwr.uni-heidelberg.de> Date: Tue, 20 Dec 2016 18:27:19 +0100 Subject: [PATCH] Switch the poisson_dg_3d input to symbolic --- test/sumfact/poisson/poisson_dg_3d.ufl | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/test/sumfact/poisson/poisson_dg_3d.ufl b/test/sumfact/poisson/poisson_dg_3d.ufl index d5c03182..b7e20157 100644 --- a/test/sumfact/poisson/poisson_dg_3d.ufl +++ b/test/sumfact/poisson/poisson_dg_3d.ufl @@ -1,12 +1,9 @@ cell = "hexahedron" -#x = SpatialCoordinate(cell) -#c = (0.5-x[0])**2 + (0.5-x[1])**2 + (0.5-x[2])**2 -#g = exp(-1.*c) -#f = 6*(1.-c)*g - -f = Expression("Dune::FieldVector<double,2> c(0.5); c-= x; return 4.*(1.-c.two_norm2())*std::exp(-1.*c.two_norm2());", cell=cell) -g = Expression("Dune::FieldVector<double,2> c(0.5); c-= x; return std::exp(-1.*c.two_norm2());", on_intersection=True, cell=cell) +x = SpatialCoordinate(cell) +c = (0.5-x[0])**2 + (0.5-x[1])**2 + (0.5-x[2])**2 +g = exp(-1.*c) +f = 6*(1.-c)*g V = FiniteElement("DG", cell, degree) -- GitLab