throw error message when DAMASK output obviously not present in T16 file
This commit is contained in:
parent
f8e06b488a
commit
c05df20370
|
@ -1176,10 +1176,14 @@ for incCount,position in enumerate(locations): # walk through locations
|
||||||
if assembleHeader: header += thisHead
|
if assembleHeader: header += thisHead
|
||||||
if resultType != 'Homogenization':
|
if resultType != 'Homogenization':
|
||||||
thisHead = heading('_',[[g,component,label] for component in range(int(length>1),length+int(length>1))])
|
thisHead = heading('_',[[g,component,label] for component in range(int(length>1),length+int(length>1))])
|
||||||
|
try:
|
||||||
newby.append({'label':label,
|
newby.append({'label':label,
|
||||||
'len':length,
|
'len':length,
|
||||||
'content':[ p.element_scalar(p.element_sequence(e),stat['IndexOfLabel'][head])[n_local].value
|
'content':[ p.element_scalar(p.element_sequence(e),stat['IndexOfLabel'][head])[n_local].value
|
||||||
for head in thisHead ]})
|
for head in thisHead ]})
|
||||||
|
except KeyError:
|
||||||
|
print '\nDAMASK outputs seem missing from "post" section of the *.dat file!'
|
||||||
|
sys.exit()
|
||||||
|
|
||||||
assembleHeader = False
|
assembleHeader = False
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue