From 51870bf964f5fb073fc6af16df40949a5dfa846a Mon Sep 17 00:00:00 2001 From: jriegel Date: Sat, 6 Dec 2014 13:10:09 +0100 Subject: [PATCH] fix in reading results from Calculix --- src/Mod/Fem/CalculixLib.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Mod/Fem/CalculixLib.py b/src/Mod/Fem/CalculixLib.py index 2cae2899a2..08dd6c4aac 100644 --- a/src/Mod/Fem/CalculixLib.py +++ b/src/Mod/Fem/CalculixLib.py @@ -45,6 +45,8 @@ def readResult(frd_input) : stress_found = False elements_found = False elem = -1 + elemType = 0 + while True: line=input.readline() if not line: break @@ -64,8 +66,9 @@ def readResult(frd_input) : #first lets extract element number if elements_found and (line[1:3] == "-1"): elem = int(line[4:13]) + elemType = int(line[14:18]) #then the 10 id's for the Tet10 element - if elements_found and (line[1:3] == "-2"): + if elements_found and (line[1:3] == "-2") and elemType == 6 : node_id_2 = int(line[3:13]) node_id_1 = int(line[13:23]) node_id_3 = int(line[23:33])