From ca596bc7aff86c1c5da916096df7f494c9c02ee8 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Thu, 25 Oct 2012 09:16:17 +0000 Subject: [PATCH] error messages are now printed, added svn properties --- code/DAMASK_run.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) mode change 100644 => 100755 code/DAMASK_run.py diff --git a/code/DAMASK_run.py b/code/DAMASK_run.py old mode 100644 new mode 100755 index 826dac0e0..a20ebab68 --- a/code/DAMASK_run.py +++ b/code/DAMASK_run.py @@ -30,7 +30,7 @@ Add column(s) with derived values according to user defined arithmetic operation Columns can be specified either by label or index. Example: distance to IP coordinates -- "math.sqrt( #ip.x#**2 + #ip.y#**2 + #ip.z#**2 )" -""" + string.replace('$Id: addCalculation.py 1355 2012-02-23 13:53:12Z MPIE\p.eisenlohr $','\n','\\n') +""" + string.replace('$Id$','\n','\\n') ) parser.add_option('-l','--load', '--loadcase', dest='loadcase', type='string', \ @@ -57,6 +57,9 @@ while exitCode == 2: if len(myLine)>1: print myLine[0:-1] # print output without extra newline exitCode = proc.returncode err = proc.stderr.readlines() + print '-------------------------------------------------------' + print 'error messages', err + print '-------------------------------------------------------' if exitCode==2: os.system('rm -rf %i'%start) os.system('mkdir %i'%start) @@ -73,4 +76,4 @@ while exitCode == 2: damask.core.math.init() damask.core.FEsolving.init() damask.core.mesh.init(1,1) - damask.core.mesh.regrid(adaptive=False,resNewInput=res) + damask.core.mesh.regrid(adaptive=True,resNewInput=res)