diff --git a/amgprec/impl/aggregator/MatchBoxPC.cpp b/amgprec/impl/aggregator/MatchBoxPC.cpp index 90b448dc..eb56adce 100644 --- a/amgprec/impl/aggregator/MatchBoxPC.cpp +++ b/amgprec/impl/aggregator/MatchBoxPC.cpp @@ -42,7 +42,6 @@ #include #if !defined(SERIAL_MPI) #include -#endif #include "MatchBoxPC.h" #ifdef __cplusplus @@ -127,3 +126,4 @@ void sMatchBoxPC(MilanLongInt NLVer, MilanLongInt NLEdge, #ifdef __cplusplus } #endif +#endif diff --git a/amgprec/impl/aggregator/MatchBoxPC.h b/amgprec/impl/aggregator/MatchBoxPC.h index a1fddb59..67486f2d 100644 --- a/amgprec/impl/aggregator/MatchBoxPC.h +++ b/amgprec/impl/aggregator/MatchBoxPC.h @@ -78,6 +78,8 @@ const int BundleTag = 9; // Predefined tag static vector DEFAULT_VECTOR; +#if !defined(SERIAL_MPI) + // MPI type map template MPI_Datatype TypeMap(); @@ -89,6 +91,7 @@ template <> inline MPI_Datatype TypeMap() { return MPI_DOUBLE; } template <> inline MPI_Datatype TypeMap() { return MPI_FLOAT; } +#endif #ifdef __cplusplus extern "C" diff --git a/amgprec/impl/aggregator/clean.cpp b/amgprec/impl/aggregator/clean.cpp index f316aee7..87bb699a 100644 --- a/amgprec/impl/aggregator/clean.cpp +++ b/amgprec/impl/aggregator/clean.cpp @@ -1,6 +1,7 @@ #include "MatchBoxPC.h" // TODO comment +#if !defined(SERIAL_MPI) void clean(MilanLongInt NLVer, MilanInt myRank, @@ -89,3 +90,4 @@ void clean(MilanLongInt NLVer, } } } +#endif diff --git a/amgprec/impl/aggregator/computeCandidateMate.cpp b/amgprec/impl/aggregator/computeCandidateMate.cpp index 7d4e7ce8..a21db656 100644 --- a/amgprec/impl/aggregator/computeCandidateMate.cpp +++ b/amgprec/impl/aggregator/computeCandidateMate.cpp @@ -9,6 +9,8 @@ * @param edgeLocWeight * @return */ +#if !defined(SERIAL_MPI) + MilanLongInt firstComputeCandidateMate(MilanLongInt adj1, MilanLongInt adj2, MilanLongInt *verLocInd, @@ -71,3 +73,4 @@ MilanLongInt computeCandidateMate(MilanLongInt adj1, return w; } +#endif diff --git a/amgprec/impl/aggregator/parallelComputeCandidateMateB.cpp b/amgprec/impl/aggregator/parallelComputeCandidateMateB.cpp index ffb8d2a3..cf340da2 100644 --- a/amgprec/impl/aggregator/parallelComputeCandidateMateB.cpp +++ b/amgprec/impl/aggregator/parallelComputeCandidateMateB.cpp @@ -1,4 +1,5 @@ #include "MatchBoxPC.h" +#if !defined(SERIAL_MPI) void PARALLEL_COMPUTE_CANDIDATE_MATE_B(MilanLongInt NLVer, MilanLongInt *verLocPtr, @@ -25,3 +26,4 @@ void PARALLEL_COMPUTE_CANDIDATE_MATE_B(MilanLongInt NLVer, } } } +#endif diff --git a/amgprec/impl/aggregator/processExposedVertex.cpp b/amgprec/impl/aggregator/processExposedVertex.cpp index 2b38ec7a..0336bed5 100644 --- a/amgprec/impl/aggregator/processExposedVertex.cpp +++ b/amgprec/impl/aggregator/processExposedVertex.cpp @@ -1,4 +1,5 @@ #include "MatchBoxPC.h" +#if !defined(SERIAL_MPI) void PARALLEL_PROCESS_EXPOSED_VERTEX_B(MilanLongInt NLVer, MilanLongInt *candidateMate, @@ -193,3 +194,4 @@ void PARALLEL_PROCESS_EXPOSED_VERTEX_B(MilanLongInt NLVer, } // End of parallel region } +#endif diff --git a/amgprec/impl/aggregator/processMatchedVertices.cpp b/amgprec/impl/aggregator/processMatchedVertices.cpp index d9363c39..eadc0531 100644 --- a/amgprec/impl/aggregator/processMatchedVertices.cpp +++ b/amgprec/impl/aggregator/processMatchedVertices.cpp @@ -1,5 +1,6 @@ #include "MatchBoxPC.h" +#if !defined(SERIAL_MPI) void processMatchedVertices( MilanLongInt NLVer, vector &UChunkBeingProcessed, @@ -292,3 +293,4 @@ void processMatchedVertices( #endif } // End of parallel region } +#endif diff --git a/amgprec/impl/aggregator/processMatchedVerticesAndSendMessages.cpp b/amgprec/impl/aggregator/processMatchedVerticesAndSendMessages.cpp index 469d7a16..922b5860 100644 --- a/amgprec/impl/aggregator/processMatchedVerticesAndSendMessages.cpp +++ b/amgprec/impl/aggregator/processMatchedVerticesAndSendMessages.cpp @@ -1,5 +1,6 @@ #include "MatchBoxPC.h" //#define DEBUG_HANG_ +#if !defined(SERIAL_MPI) void processMatchedVerticesAndSendMessages( MilanLongInt NLVer, vector &UChunkBeingProcessed, @@ -306,3 +307,4 @@ void processMatchedVerticesAndSendMessages( cout << myRank<<" Done sending messages"<