| c346545e | 11-Jul-2016 |
Lawrence Mitchell <lawrence.mitchell@imperial.ac.uk> |
PetscSF: Recursively unwrap dupped types
Consider the case where the user passes a dupped type into PetscSFXXXBegin/End. To find the appropriate data packs, we need to compare dup(X) and dup(dup(X)
PetscSF: Recursively unwrap dupped types
Consider the case where the user passes a dupped type into PetscSFXXXBegin/End. To find the appropriate data packs, we need to compare dup(X) and dup(dup(X)). Previously, MPIPetsc_Type_unwrap would remove one layer of dupping from the type. Such that we would end up with X and dup(X). These do not compare equivalent. Fix this by unwinding all dup calls in MPIPetsc_Type_unwrap.
show more ...
|