From 11c3ba9496eca42836d09e9252d5e065abeda94a Mon Sep 17 00:00:00 2001 From: benjaminknebusch Date: Fri, 5 Apr 2019 14:02:59 +0200 Subject: [PATCH] Update ft11_magnetostatics.py Expression needs Cpp code to be provided use UserExpression instead --- pub/python/vol1/ft11_magnetostatics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pub/python/vol1/ft11_magnetostatics.py b/pub/python/vol1/ft11_magnetostatics.py index ad155da5..59498170 100644 --- a/pub/python/vol1/ft11_magnetostatics.py +++ b/pub/python/vol1/ft11_magnetostatics.py @@ -60,7 +60,7 @@ J_S = Constant(-1.0) # Define magnetic permeability -class Permeability(Expression): +class Permeability(UserExpression): def __init__(self, markers, **kwargs): self.markers = markers def eval_cell(self, values, x, cell):