Skip to content

Commit

Permalink
CI: mpi, clear devito cache before run
Browse files Browse the repository at this point in the history
  • Loading branch information
mloubout committed Feb 7, 2022
1 parent 06f1da9 commit 871061d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/pytest-core-mpi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
- name: Test with pytest
run: |
python3 scripts/clear_devito_cache.py
python3 -m pytest --cov --cov-config=.coveragerc --cov-report=xml -m parallel tests/
- name: Upload coverage to Codecov
Expand Down
3 changes: 2 additions & 1 deletion devito/types/sparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ def _dist_gather_mask(self, dmap=None):
ret = list(self._dist_scatter_mask(dmap=dmap))
mask = ret[self._sparse_position]
inds = np.unique(mask, return_index=True)[1]
ret[self._sparse_position] = inds.tolist()
inds.sort()
ret[self._sparse_position] = [mask[i] for i in inds]

return tuple(ret)

Expand Down

0 comments on commit 871061d

Please sign in to comment.