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():
|
def init():
|
||||||
#-------------------------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------------------------
|
||||||
return ["*new_model yes",
|
return [
|
||||||
|
"#"+' '.join([scriptID] + sys.argv[1:]),
|
||||||
|
"*new_model yes",
|
||||||
"*reset",
|
"*reset",
|
||||||
"*select_clear",
|
"*select_clear",
|
||||||
"*set_element_class hex8",
|
"*set_element_class hex8",
|
||||||
|
@ -254,9 +256,12 @@ for file in files:
|
||||||
content = file['input'].readlines()
|
content = file['input'].readlines()
|
||||||
|
|
||||||
(grid,size,homog,microstructures) = parse_geomFile(content, options.homogenization)
|
(grid,size,homog,microstructures) = parse_geomFile(content, options.homogenization)
|
||||||
|
|
||||||
file['croak'].write('%i microstructures in %s with grid %s and homogenization %i\n'
|
#--- report ---------------------------------------------------------------------------------------
|
||||||
%(len(list(set(microstructures))),str(size),str(grid),homog))
|
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 = [\
|
cmds = [\
|
||||||
init(),
|
init(),
|
||||||
|
|
Loading…
Reference in New Issue