output follows standard way, test need to ignore header
This commit is contained in:
parent
056ba0f2e4
commit
d70b903d1b
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue