aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetInterp2
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2008-07-15 12:11:40 -0500
committerErik Schnetter <schnetter@cct.lsu.edu>2008-07-15 13:30:25 -0500
commiteab9c028bf17183891b2687d028eaefa67a37c2a (patch)
tree51abc65069742967a6d41c2d81ba983ac9cb6dc0 /Carpet/CarpetInterp2
parentb962688a49b6a86b1dc6d52ce28c195671fc06a6 (diff)
Move implementation of create_mpi_datatype from CarpetInterp2 to CarpetLib
Diffstat (limited to 'Carpet/CarpetInterp2')
-rw-r--r--Carpet/CarpetInterp2/src/fasterp.cc20
-rw-r--r--Carpet/CarpetInterp2/src/fasterp.hh14
2 files changed, 0 insertions, 34 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 ()
diff --git a/Carpet/CarpetInterp2/src/fasterp.hh b/Carpet/CarpetInterp2/src/fasterp.hh
index d2a13a35f..84b20da80 100644
--- a/Carpet/CarpetInterp2/src/fasterp.hh
+++ b/Carpet/CarpetInterp2/src/fasterp.hh
@@ -27,20 +27,6 @@ namespace CarpetInterp2 {
- // Map C structures to MPI datatypes
- struct mpi_struct_descr_t {
- int blocklength;
- MPI_Aint displacement;
- MPI_Datatype type;
- };
-
- void
- create_mpi_datatype (size_t count,
- mpi_struct_descr_t const descr[],
- MPI_Datatype & newtype);
-
-
-
// A global location, given by its global coordinates
struct fasterp_glocs_t {
vector<CCTK_REAL> coords[dim];