Skip to content
Snippets Groups Projects
Commit 642d8a9d authored by Mark OLESEN's avatar Mark OLESEN
Browse files

COMP: guards around #define OMPI_SKIP_MPICXX (avoids compiler warnings)

parent 2afd2320
No related branches found
No related tags found
No related merge requests found
Showing
with 94 additions and 6 deletions
...@@ -27,6 +27,14 @@ License ...@@ -27,6 +27,14 @@ License
#include "dummyLib.H" #include "dummyLib.H"
#include <iostream> #include <iostream>
// Include MPI without any C++ bindings
#ifndef MPICH_SKIP_MPICXX
#define MPICH_SKIP_MPICXX
#endif
#ifndef OMPI_SKIP_MPICXX
#define OMPI_SKIP_MPICXX
#endif
#include <mpi.h> #include <mpi.h>
// * * * * * * * * * * * * * * Global Functions * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Global Functions * * * * * * * * * * * * * * //
......
...@@ -40,6 +40,14 @@ Description ...@@ -40,6 +40,14 @@ Description
#include "IOstreams.H" #include "IOstreams.H"
#include "PstreamReduceOps.H" #include "PstreamReduceOps.H"
#include "SHA1.H" #include "SHA1.H"
// Include MPI without any C++ bindings
#ifndef MPICH_SKIP_MPICXX
#define MPICH_SKIP_MPICXX
#endif
#ifndef OMPI_SKIP_MPICXX
#define OMPI_SKIP_MPICXX
#endif
#include <mpi.h> #include <mpi.h>
using namespace Foam; using namespace Foam;
......
...@@ -40,10 +40,19 @@ Description ...@@ -40,10 +40,19 @@ Description
#include "IOstreams.H" #include "IOstreams.H"
#include "StringStream.H" #include "StringStream.H"
#include "Random.H" #include "Random.H"
// Include MPI without any C++ bindings
#ifndef MPICH_SKIP_MPICXX
#define MPICH_SKIP_MPICXX
#endif
#ifndef OMPI_SKIP_MPICXX
#define OMPI_SKIP_MPICXX
#endif
#include <mpi.h> #include <mpi.h>
using namespace Foam; using namespace Foam;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
void printRequests(const UList<MPI_Request>& requests) void printRequests(const UList<MPI_Request>& requests)
{ {
......
...@@ -38,9 +38,16 @@ Description ...@@ -38,9 +38,16 @@ Description
#include "vector.H" #include "vector.H"
#include "IOstreams.H" #include "IOstreams.H"
#include "Pstream.H" #include "Pstream.H"
#include <iostream>
// Include MPI without any C++ bindings
#ifndef MPICH_SKIP_MPICXX
#define MPICH_SKIP_MPICXX
#endif
#ifndef OMPI_SKIP_MPICXX
#define OMPI_SKIP_MPICXX
#endif
#include <mpi.h> #include <mpi.h>
#include <iostream>
using namespace Foam; using namespace Foam;
......
...@@ -33,6 +33,14 @@ Description ...@@ -33,6 +33,14 @@ Description
#include "polyMesh.H" #include "polyMesh.H"
#include "globalMeshData.H" #include "globalMeshData.H"
#include "OFstream.H" #include "OFstream.H"
// Include MPI without any C++ bindings
#ifndef MPICH_SKIP_MPICXX
#define MPICH_SKIP_MPICXX
#endif
#ifndef OMPI_SKIP_MPICXX
#define OMPI_SKIP_MPICXX
#endif
#include <mpi.h> #include <mpi.h>
using namespace Foam; using namespace Foam;
......
...@@ -41,6 +41,14 @@ SourceFiles ...@@ -41,6 +41,14 @@ SourceFiles
#include "DynamicList.H" #include "DynamicList.H"
#include "UPstream.H" // for UPstream::Request #include "UPstream.H" // for UPstream::Request
// Include MPI without any C++ bindings
#ifndef MPICH_SKIP_MPICXX
#define MPICH_SKIP_MPICXX
#endif
#ifndef OMPI_SKIP_MPICXX
#define OMPI_SKIP_MPICXX
#endif
#include <mpi.h> #include <mpi.h>
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......
...@@ -39,6 +39,14 @@ SourceFiles ...@@ -39,6 +39,14 @@ SourceFiles
#define Foam_UPstreamWrapping_H #define Foam_UPstreamWrapping_H
#include "UPstream.H" #include "UPstream.H"
// Include MPI without any C++ bindings
#ifndef MPICH_SKIP_MPICXX
#define MPICH_SKIP_MPICXX
#endif
#ifndef OMPI_SKIP_MPICXX
#define OMPI_SKIP_MPICXX
#endif
#include <mpi.h> #include <mpi.h>
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......
...@@ -29,13 +29,20 @@ License ...@@ -29,13 +29,20 @@ License
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
#include "Time.H" #include "Time.H"
#include "PrecisionAdaptor.H" #include "PrecisionAdaptor.H"
#include "kaHIP_interface.h"
#include <string>
#include <map> #include <map>
#include <string>
#include <vector> #include <vector>
// Probably not needed, but in case we pickup parhip_interface.h
#ifndef MPICH_SKIP_MPICXX
#define MPICH_SKIP_MPICXX
#endif
#ifndef OMPI_SKIP_MPICXX
#define OMPI_SKIP_MPICXX
#endif
#include "kaHIP_interface.h"
// Provide a clear error message if we have a severe size mismatch // Provide a clear error message if we have a severe size mismatch
// Allow widening, but not narrowing // Allow widening, but not narrowing
......
...@@ -32,8 +32,12 @@ License ...@@ -32,8 +32,12 @@ License
#include "PrecisionAdaptor.H" #include "PrecisionAdaptor.H"
// Probably not needed... // Probably not needed...
#ifndef MPICH_SKIP_MPICXX
#define MPICH_SKIP_MPICXX #define MPICH_SKIP_MPICXX
#endif
#ifndef OMPI_SKIP_MPICXX
#define OMPI_SKIP_MPICXX #define OMPI_SKIP_MPICXX
#endif
#include "metis.h" #include "metis.h"
......
...@@ -32,12 +32,20 @@ License ...@@ -32,12 +32,20 @@ License
#include "Time.H" #include "Time.H"
#include "PrecisionAdaptor.H" #include "PrecisionAdaptor.H"
#include "OFstream.H" #include "OFstream.H"
#include <cstdio>
#include <limits> #include <limits>
// Include MPI without any C++ bindings
#ifndef MPICH_SKIP_MPICXX
#define MPICH_SKIP_MPICXX
#endif
#ifndef OMPI_SKIP_MPICXX
#define OMPI_SKIP_MPICXX
#endif
// Avoid too many warnings from mpi.h // Avoid too many warnings from mpi.h
#pragma GCC diagnostic ignored "-Wold-style-cast" #pragma GCC diagnostic ignored "-Wold-style-cast"
#include <cstdio>
#include <mpi.h> #include <mpi.h>
#include "ptscotch.h" #include "ptscotch.h"
......
...@@ -32,11 +32,16 @@ License ...@@ -32,11 +32,16 @@ License
#include "Time.H" #include "Time.H"
#include "PrecisionAdaptor.H" #include "PrecisionAdaptor.H"
#include "OFstream.H" #include "OFstream.H"
#include <cstdio>
#include <limits> #include <limits>
// Probably not needed, but in case we pickup a ptscotch.h ... // Probably not needed, but in case we pickup a ptscotch.h ...
#ifndef MPICH_SKIP_MPICXX
#define MPICH_SKIP_MPICXX #define MPICH_SKIP_MPICXX
#endif
#ifndef OMPI_SKIP_MPICXX
#define OMPI_SKIP_MPICXX #define OMPI_SKIP_MPICXX
#endif
#include "scotch.h" #include "scotch.h"
......
...@@ -59,6 +59,14 @@ SourceFiles ...@@ -59,6 +59,14 @@ SourceFiles
#include "globalIndex.H" #include "globalIndex.H"
#include "uint.H" #include "uint.H"
// Include MPI without any C++ bindings
#ifndef MPICH_SKIP_MPICXX
#define MPICH_SKIP_MPICXX
#endif
#ifndef OMPI_SKIP_MPICXX
#define OMPI_SKIP_MPICXX
#endif
#pragma GCC diagnostic ignored "-Wold-style-cast" #pragma GCC diagnostic ignored "-Wold-style-cast"
#include "zoltan.h" #include "zoltan.h"
#include <mpi.h> #include <mpi.h>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment