Skip to content

Commit

Permalink
Calling swmr_on()
Browse files Browse the repository at this point in the history
  • Loading branch information
micheles committed Aug 28, 2023
1 parent ce5cdcd commit 6d24c6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openquake/commonlib/calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@ def weight(rec):
sbe = data['slice_by_event'][:]
except KeyError:
sbe = build_slice_by_event(data['eid'][:])
dstore.swmr_on()
smap = parallel.Starmap.apply(
task_func, (sbe, oq, ds),
maxweight=A*10, weight=weight,
Expand Down

0 comments on commit 6d24c6f

Please sign in to comment.