output follows standard way, test need to ignore header

This commit is contained in:
Martin Diehl 2015-05-20 21:26:49 +00:00
parent 056ba0f2e4
commit d70b903d1b
1 changed files with 9 additions and 4 deletions

View File

@ -50,7 +50,9 @@ def output(cmds,locals,dest):
#-------------------------------------------------------------------------------------------------
def init():
#-------------------------------------------------------------------------------------------------
return ["*new_model yes",
return [
"#"+' '.join([scriptID] + sys.argv[1:]),
"*new_model yes",
"*reset",
"*select_clear",
"*set_element_class hex8",
@ -255,8 +257,11 @@ for file in files:
(grid,size,homog,microstructures) = parse_geomFile(content, options.homogenization)
file['croak'].write('%i microstructures in %s with grid %s and homogenization %i\n'
%(len(list(set(microstructures))),str(size),str(grid),homog))
#--- report ---------------------------------------------------------------------------------------
file['croak'].write('grid a b c: %s\n'%(' x '.join(map(str,grid))) +
'size x y z: %s\n'%(' x '.join(map(str,size))) +
'homogenization: %i\n'%homog +
'microstructures: %i\n\n'%(len(list(set(microstructures)))))
cmds = [\
init(),