Skip to content

Commit

Permalink
Work around different mpi4py versions
Browse files Browse the repository at this point in the history
  • Loading branch information
wence- committed Feb 17, 2015
1 parent b469c6b commit ef6b20d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion firedrake/halo.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ def _get_mtype(dat):
return _MPI_types[key]
except KeyError:
try:
btype = MPI.__TypeDict__[dat.dtype.char]
tdict = MPI.__TypeDict__
except AttributeError:
tdict = MPI._typedict
try:
btype = tdict[dat.dtype.char]
except KeyError:
raise RuntimeError("Unknown base type %r", dat.dtype)
if dat.cdim == 1:
Expand Down

0 comments on commit ef6b20d

Please sign in to comment.