From 7999a63833daddfdb5f5b4ed06855f8e0cfb7b2a Mon Sep 17 00:00:00 2001 From: Mabelle Lin Date: Tue, 13 Jul 2021 16:01:26 +1200 Subject: [PATCH] Fix error related to scale factor at annulus --- src/scaffoldmaker/meshtypes/meshtype_3d_stomach1.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scaffoldmaker/meshtypes/meshtype_3d_stomach1.py b/src/scaffoldmaker/meshtypes/meshtype_3d_stomach1.py index 1608824b..cdea05d9 100644 --- a/src/scaffoldmaker/meshtypes/meshtype_3d_stomach1.py +++ b/src/scaffoldmaker/meshtypes/meshtype_3d_stomach1.py @@ -2651,8 +2651,8 @@ def generateBaseMesh(cls, region, options): result1 = splitElementtemplate2.defineField(splitCoordinates, -1, eft2) result2 = element.merge(splitElementtemplate2) element.setNodesByIdentifier(eft2, nodeIdentifiers) - if eft2.getNumberOfLocalScaleFactors() == 1: - result3 = element.setScaleFactors(eft2, [-1.0]) + if eft2.getNumberOfLocalScaleFactors() > 0: + element.setScaleFactor(eft2, 1, -1.0) else: result1 = splitElementtemplate1.defineField(splitCoordinates, -1, eft) result2 = element.merge(splitElementtemplate1)