diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2008-07-15 12:11:40 -0500 |
---|---|---|
committer | Erik Schnetter <schnetter@cct.lsu.edu> | 2008-07-15 13:30:25 -0500 |
commit | eab9c028bf17183891b2687d028eaefa67a37c2a (patch) | |
tree | 51abc65069742967a6d41c2d81ba983ac9cb6dc0 /Carpet/CarpetInterp2/src/fasterp.cc | |
parent | b962688a49b6a86b1dc6d52ce28c195671fc06a6 (diff) |
Move implementation of create_mpi_datatype from CarpetInterp2 to CarpetLib
Diffstat (limited to 'Carpet/CarpetInterp2/src/fasterp.cc')
-rw-r--r-- | Carpet/CarpetInterp2/src/fasterp.cc | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/Carpet/CarpetInterp2/src/fasterp.cc b/Carpet/CarpetInterp2/src/fasterp.cc index 1de7c7863..44a2e8d6d 100644 --- a/Carpet/CarpetInterp2/src/fasterp.cc +++ b/Carpet/CarpetInterp2/src/fasterp.cc @@ -17,26 +17,6 @@ namespace CarpetInterp2 { - // Create an MPI datatype from a C datatype description - void - create_mpi_datatype (size_t const count, - mpi_struct_descr_t const descr[], - MPI_Datatype & newtype) - { - int blocklengths[count]; - MPI_Aint displacements[count]; - MPI_Datatype types[count]; - for (size_t n=0; n<count; ++n) { - blocklengths [n] = descr[n].blocklength; - displacements[n] = descr[n].displacement; - types [n] = descr[n].type; - } - MPI_Type_struct (count, blocklengths, displacements, types, &newtype); - MPI_Type_commit (&newtype); - } - - - // Create an MPI datatype for location information MPI_Datatype fasterp_iloc_t::mpi_datatype () |