fixed some small flaws

This commit is contained in:
Martin Diehl 2014-08-07 16:16:02 +00:00
parent 0fc5e3717c
commit df50707445
1 changed files with 7 additions and 6 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*- # -*- coding: UTF-8 no BOM -*-
''' '''
@ -10,12 +10,12 @@ See Abaqus Keyword Reference Manual (AKRM) *DEPVAR for details.
Original script: marc_addUserOutput.py modified by Benjamin Bode Original script: marc_addUserOutput.py modified by Benjamin Bode
''' '''
import sys,os,re import sys,os,re,string
import damask
from optparse import OptionParser from optparse import OptionParser
import damask
scriptID = '$Id$' scriptID = '$Id$'
scriptName = scriptID.split()[1] scriptName = scriptID.split()[1][:-3]
# ----------------------------- # -----------------------------
def ParseOutputFormat(filename,what,me): def ParseOutputFormat(filename,what,me):
@ -69,8 +69,9 @@ that are written during the first run of the model.
Specify which user block format you want to apply by stating the homogenization, crystallite, and phase identifiers. Specify which user block format you want to apply by stating the homogenization, crystallite, and phase identifiers.
Or have an existing set of user variables copied over from another *.inp file. Or have an existing set of user variables copied over from another *.inp file.
""" + string.replace(scriptID,'\n','\\n')
) """, version= scriptID)
parser.add_option('-n','--number', dest='number', type='int', \ parser.add_option('-n','--number', dest='number', type='int', \
help='maximum requested User Defined Variable [%default]') help='maximum requested User Defined Variable [%default]')
parser.add_option('--homogenization', dest='homog', type='string', \ parser.add_option('--homogenization', dest='homog', type='string', \