FEM: simplify reading lines from frd file
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
This commit is contained in:
parent
f5863b6d9b
commit
9c6ee0ac63
|
@ -49,10 +49,7 @@ def readResult(frd_input):
|
||||||
elem = -1
|
elem = -1
|
||||||
elemType = 0
|
elemType = 0
|
||||||
|
|
||||||
while True:
|
for line in frd_file:
|
||||||
line = frd_file.readline()
|
|
||||||
if not line:
|
|
||||||
break
|
|
||||||
#Check if we found nodes section
|
#Check if we found nodes section
|
||||||
if line[4:6] == "2C":
|
if line[4:6] == "2C":
|
||||||
nodes_found = True
|
nodes_found = True
|
||||||
|
|
Loading…
Reference in New Issue
Block a user