verbose should be optional

- causes problems on many systems (screwed up output)
- does not work with python 3 since threading class has changed
This commit is contained in:
Martin Diehl 2018-11-15 12:16:55 +01:00
parent 259bf03315
commit efd29e62f7
1 changed files with 5 additions and 4 deletions

View File

@ -135,7 +135,7 @@ class MPIEspectral_result: # mimic py_post result object
if self.N_element_scalars is None:
self.N_element_scalars = self._keyedPackedArray('materialpoint_sizeResults',count=1,type='i')[0]
self.N_positions = (self.filesize-self.dataOffset)/(self.N_elements*self.N_element_scalars*8)
self.N_positions = (self.filesize-self.dataOffset)//(self.N_elements*self.N_element_scalars*8)
self.N_increments = 1 # add zero'th entry
for i in range(self.N_loadcases):
self.N_increments += self._increments[i]//self._frequencies[i]
@ -674,6 +674,9 @@ parser.add_option('-p','--type', dest='filetype',
parser.add_option('-q','--quiet', dest='verbose',
action = 'store_false',
help = 'suppress verbose output')
parser.add_option('--verbose', dest='verbose',
action = 'store_true',
help = 'enable verbose output')
group_material = OptionGroup(parser,'Material identifier')
@ -715,7 +718,7 @@ parser.add_option_group(group_general)
parser.add_option_group(group_special)
parser.set_defaults(info = False,
verbose = True,
verbose = False,
legacy = False,
nodal = False,
prefix = '',
@ -1173,5 +1176,3 @@ for incCount,position in enumerate(locations): # walk through locations
if fileOpen:
file.close()
# --------------------------- DONE --------------------------------