Skip to content

Commit

Permalink
equivalence
Browse files Browse the repository at this point in the history
  • Loading branch information
mscroggs committed Nov 25, 2024
1 parent 1ccca3f commit 7fa0e6f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,25 @@ pub enum ReferenceCellType {
/// A square-based pyramid
Pyramid,
}

#[cfg(feature = "mpi")]
unsafe impl Equivalence for Continuity {
type Out = <u8 as Equivalence>::Out;
fn equivalent_datatype() -> <u8 as Equivalence>::Out {
<u8 as Equivalence>::equivalent_datatype()
}
}
#[cfg(feature = "mpi")]
unsafe impl Equivalence for MapType {
type Out = <u8 as Equivalence>::Out;
fn equivalent_datatype() -> <u8 as Equivalence>::Out {
<u8 as Equivalence>::equivalent_datatype()
}
}
#[cfg(feature = "mpi")]
unsafe impl Equivalence for ReferenceCellType {
type Out = <u8 as Equivalence>::Out;
fn equivalent_datatype() -> <u8 as Equivalence>::Out {
<u8 as Equivalence>::equivalent_datatype()
}
}

0 comments on commit 7fa0e6f

Please sign in to comment.