[ck2cti] Fix reading empty THERMO sections
This commit is contained in:
parent
1cc411200e
commit
4f236a80fe
1 changed files with 2 additions and 1 deletions
|
|
@ -1404,7 +1404,8 @@ class Parser(object):
|
||||||
elif contains(line, 'THERM'):
|
elif contains(line, 'THERM'):
|
||||||
# List of thermodynamics (hopefully one per species!)
|
# List of thermodynamics (hopefully one per species!)
|
||||||
line, comment = readline()
|
line, comment = readline()
|
||||||
TintDefault = float(line.split()[1])
|
if not contains(line, 'END'):
|
||||||
|
TintDefault = float(line.split()[1])
|
||||||
thermo = ''
|
thermo = ''
|
||||||
while not contains(line, 'END'):
|
while not contains(line, 'END'):
|
||||||
if len(line) >= 80 and line[79] in ['1', '2', '3', '4']:
|
if len(line) >= 80 and line[79] in ['1', '2', '3', '4']:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue