more systematic reporting
This commit is contained in:
parent
130cf7fe2e
commit
bddb514072
|
@ -1,4 +1,4 @@
|
|||
import multiprocessing
|
||||
import multiprocessing as mp
|
||||
import re
|
||||
import inspect
|
||||
import glob
|
||||
|
@ -413,6 +413,7 @@ class Result:
|
|||
for i in self.iterate('increments'):
|
||||
message += f'\n{i} ({self.times[self.increments.index(i)]}s)\n'
|
||||
for o,p in zip(['constituents','materialpoints'],['con_physics','mat_physics']):
|
||||
message += f' {o[:-1]}\n'
|
||||
for oo in self.iterate(o):
|
||||
message += f' {oo}\n'
|
||||
for pp in self.iterate(p):
|
||||
|
@ -1066,8 +1067,8 @@ class Result:
|
|||
|
||||
"""
|
||||
num_threads = Environment().options['DAMASK_NUM_THREADS']
|
||||
pool = multiprocessing.Pool(int(num_threads) if num_threads is not None else None)
|
||||
lock = multiprocessing.Manager().Lock()
|
||||
pool = mp.Pool(int(num_threads) if num_threads is not None else None)
|
||||
lock = mp.Manager().Lock()
|
||||
|
||||
groups = self.groups_with_datasets(datasets.values())
|
||||
default_arg = partial(self._job,func=func,datasets=datasets,args=args,lock=lock)
|
||||
|
|
Loading…
Reference in New Issue