bug fixes

This commit is contained in:
Martin Diehl 2021-03-26 12:43:27 +01:00
parent cb0d407ce4
commit d74c1534ed
2 changed files with 10 additions and 8 deletions

View File

@ -1,8 +1,9 @@
#!/usr/bin/env python2.7
# -*- coding: UTF-8 no BOM -*-
#!/usr/bin/env python3
import os,re
import os
import re
from optparse import OptionParser
import damask
scriptName = os.path.splitext(os.path.basename(__file__))[0]
@ -11,6 +12,7 @@ scriptID = ' '.join([scriptName,damask.version])
def all_same(items,a):
return all(x == a for x in items)
def func(seq):
for x in seq:
try:
@ -18,14 +20,14 @@ def func(seq):
except ValueError:
yield x
#--------------------------------------------------------------------------------------------------
# MAIN
#--------------------------------------------------------------------------------------------------
parser = OptionParser(option_class=damask.extendableOption, usage='%prog options [file[s]]',
description =' Recognize bounding surfaces and append them as physical sufaces in the geo file.',
version = scriptID)
parser = OptionParser(option_class=damask.extendableOption, usage='%prog options [file[s]]', description = """
Recognize bounding surfaces and append them as physical sufaces in the geo file.
""", version = scriptID)
parser.add_option('-n','--numvol', dest = 'N', type='int', metavar='int',
help='number of physical volumes' )

View File

@ -366,7 +366,7 @@ subroutine uedinc(inc,incsub)
integer :: n, nqncomp, nqdatatype
integer, save :: inc_written
real(pReal), allocatable, dimension(:,:) :: d_n
#include QUOTE(PASTE(./marc/include/creeps,Marc4DAMASK)) ! creeps is needed for timinc (time increment)
#include QUOTE(PASTE(./Marc/include/creeps,Marc4DAMASK)) ! creeps is needed for timinc (time increment)
if (inc > inc_written) then