re-introduced determination of elem column

This commit is contained in:
Martin Diehl 2015-03-12 06:20:40 +00:00
parent 3f340ffac9
commit def6d6b878
1 changed files with 2 additions and 1 deletions

View File

@ -59,12 +59,13 @@ for file in files:
# --------------- figure out size and grid ---------------------------------------------------------
try:
elemCol = table.labels.index('elem')
locationCol = table.labels.index('1_%s'%options.coords) # columns containing location data
except ValueError:
try:
locationCol = table.labels.index('%s.x'%options.coords) # columns containing location data (legacy naming scheme)
except ValueError:
file['croak'].write('no coordinate data (1_%s/%s.x) found...\n'%(options.coords,options.coords))
file['croak'].write('no coordinate (1_%s/%s.x) and/or elem data found...\n'%(options.coords,options.coords))
continue
if (any(options.grid)==0 or any(options.size)==0.0):