From 7fa0e6f2a3a115c861b52f3fd63fc456b8ed218b Mon Sep 17 00:00:00 2001 From: Matthew Scroggs Date: Mon, 25 Nov 2024 11:39:02 +0000 Subject: [PATCH] equivalence --- src/types.rs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/types.rs b/src/types.rs index 1814cca..c12fe09 100644 --- a/src/types.rs +++ b/src/types.rs @@ -65,3 +65,25 @@ pub enum ReferenceCellType { /// A square-based pyramid Pyramid, } + +#[cfg(feature = "mpi")] +unsafe impl Equivalence for Continuity { + type Out = ::Out; + fn equivalent_datatype() -> ::Out { + ::equivalent_datatype() + } +} +#[cfg(feature = "mpi")] +unsafe impl Equivalence for MapType { + type Out = ::Out; + fn equivalent_datatype() -> ::Out { + ::equivalent_datatype() + } +} +#[cfg(feature = "mpi")] +unsafe impl Equivalence for ReferenceCellType { + type Out = ::Out; + fn equivalent_datatype() -> ::Out { + ::equivalent_datatype() + } +}