From fe581cc24805288c6c1a9b26a4b72748906f16c8 Mon Sep 17 00:00:00 2001 From: Kurt Kanzenbach Date: Thu, 26 Mar 2020 15:58:46 +0100 Subject: [PATCH] hpx: Remove use of deprecated header The current hpx version is v1.4. Remove the usage of deprecated hpx headers and make it compile again. Signed-off-by: Kurt Kanzenbach --- src/libgeodecomp/communication/hpxreceiver.h | 5 ++--- src/libgeodecomp/communication/hpxserializationwrapper.h | 8 ++++---- .../communication/test/parallel_hpx_4/hpxreceivertest.h | 5 ++--- src/libgeodecomp/geometry/coord.h | 4 ++-- src/libgeodecomp/io/mocksteerer.h | 5 +++++ src/libgeodecomp/io/mockwriter.h | 5 +++++ src/libgeodecomp/misc/clonable.h | 2 +- src/libgeodecomp/misc/nonpodtestcell.h | 2 +- src/libgeodecomp/parallelization/hpxsimulator.cpp | 2 +- src/libgeodecomp/parallelization/hpxsimulator.h | 9 ++++----- src/libgeodecomp/storage/displacedgrid.h | 4 ++-- src/libgeodecomp/storage/grid.h | 4 ++-- src/libgeodecomp/storage/patchprovider.h | 3 ++- .../storage/test/unit/reorderingunstructuredgridtest.h | 4 ++-- 14 files changed, 35 insertions(+), 27 deletions(-) diff --git a/src/libgeodecomp/communication/hpxreceiver.h b/src/libgeodecomp/communication/hpxreceiver.h index 1a0baf9bbdee..beb657b88bbc 100644 --- a/src/libgeodecomp/communication/hpxreceiver.h +++ b/src/libgeodecomp/communication/hpxreceiver.h @@ -10,10 +10,9 @@ #include #include -#include -#include +#include +#include #include -#include #include #include diff --git a/src/libgeodecomp/communication/hpxserializationwrapper.h b/src/libgeodecomp/communication/hpxserializationwrapper.h index 5ebf06c4cf7c..0afb145840a6 100644 --- a/src/libgeodecomp/communication/hpxserializationwrapper.h +++ b/src/libgeodecomp/communication/hpxserializationwrapper.h @@ -10,10 +10,10 @@ * just pull in this header. */ #include -#include -#include -#include -#include +#include +#include +#include +#include #endif diff --git a/src/libgeodecomp/communication/test/parallel_hpx_4/hpxreceivertest.h b/src/libgeodecomp/communication/test/parallel_hpx_4/hpxreceivertest.h index ab16a0947546..b2f9c6d47559 100644 --- a/src/libgeodecomp/communication/test/parallel_hpx_4/hpxreceivertest.h +++ b/src/libgeodecomp/communication/test/parallel_hpx_4/hpxreceivertest.h @@ -1,9 +1,8 @@ #include #include -#include +#include #include -#include -#include +#include #include #include diff --git a/src/libgeodecomp/geometry/coord.h b/src/libgeodecomp/geometry/coord.h index 5df21310d3ee..8772980c52df 100644 --- a/src/libgeodecomp/geometry/coord.h +++ b/src/libgeodecomp/geometry/coord.h @@ -10,8 +10,8 @@ #ifdef LIBGEODECOMP_WITH_HPX #include #include -#include -#include +#include +#include #endif // For Intel MPI we need to source mpi.h before stdio.h: diff --git a/src/libgeodecomp/io/mocksteerer.h b/src/libgeodecomp/io/mocksteerer.h index 4ab2d28c5097..e20d0d5bb6bf 100644 --- a/src/libgeodecomp/io/mocksteerer.h +++ b/src/libgeodecomp/io/mocksteerer.h @@ -4,6 +4,11 @@ #include #include +#ifdef LIBGEODECOMP_WITH_HPX +#include +#include +#endif + namespace LibGeoDecomp { namespace MockSteererHelpers { diff --git a/src/libgeodecomp/io/mockwriter.h b/src/libgeodecomp/io/mockwriter.h index 4d6d13c93acb..36cb7e1e1ae6 100644 --- a/src/libgeodecomp/io/mockwriter.h +++ b/src/libgeodecomp/io/mockwriter.h @@ -8,6 +8,11 @@ #include #include +#ifdef LIBGEODECOMP_WITH_HPX +#include +#include +#endif + #include namespace LibGeoDecomp { diff --git a/src/libgeodecomp/misc/clonable.h b/src/libgeodecomp/misc/clonable.h index 8162513826b8..a1dccbf94bd3 100644 --- a/src/libgeodecomp/misc/clonable.h +++ b/src/libgeodecomp/misc/clonable.h @@ -5,7 +5,7 @@ #ifdef LIBGEODECOMP_WITH_HPX #include -#include +#include #endif namespace LibGeoDecomp { diff --git a/src/libgeodecomp/misc/nonpodtestcell.h b/src/libgeodecomp/misc/nonpodtestcell.h index 66453ce80ba7..1618c8359b90 100644 --- a/src/libgeodecomp/misc/nonpodtestcell.h +++ b/src/libgeodecomp/misc/nonpodtestcell.h @@ -11,7 +11,7 @@ #endif #ifdef LIBGEODECOMP_WITH_HPX -#include +#include #endif namespace LibGeoDecomp { diff --git a/src/libgeodecomp/parallelization/hpxsimulator.cpp b/src/libgeodecomp/parallelization/hpxsimulator.cpp index 6e2fb6c78519..0329d6815913 100644 --- a/src/libgeodecomp/parallelization/hpxsimulator.cpp +++ b/src/libgeodecomp/parallelization/hpxsimulator.cpp @@ -3,7 +3,7 @@ #include #include -#include +#include namespace LibGeoDecomp { namespace HpxSimulatorHelpers { diff --git a/src/libgeodecomp/parallelization/hpxsimulator.h b/src/libgeodecomp/parallelization/hpxsimulator.h index 1ccdf883e915..15b5a3628f9d 100644 --- a/src/libgeodecomp/parallelization/hpxsimulator.h +++ b/src/libgeodecomp/parallelization/hpxsimulator.h @@ -6,11 +6,10 @@ #include #include -#include -#include -#include -#include -#include +#include +#include +#include +#include #include #include diff --git a/src/libgeodecomp/storage/displacedgrid.h b/src/libgeodecomp/storage/displacedgrid.h index 5c72e520ce48..a8831053fedc 100644 --- a/src/libgeodecomp/storage/displacedgrid.h +++ b/src/libgeodecomp/storage/displacedgrid.h @@ -19,8 +19,8 @@ #ifdef LIBGEODECOMP_WITH_HPX #include #include -#include -#include +#include +#include #endif namespace LibGeoDecomp { diff --git a/src/libgeodecomp/storage/grid.h b/src/libgeodecomp/storage/grid.h index 6e218696f625..821b02002c87 100644 --- a/src/libgeodecomp/storage/grid.h +++ b/src/libgeodecomp/storage/grid.h @@ -26,8 +26,8 @@ #ifdef LIBGEODECOMP_WITH_HPX #include #include -#include -#include +#include +#include #endif namespace LibGeoDecomp { diff --git a/src/libgeodecomp/storage/patchprovider.h b/src/libgeodecomp/storage/patchprovider.h index 71fda8091e95..66aa67f214fa 100644 --- a/src/libgeodecomp/storage/patchprovider.h +++ b/src/libgeodecomp/storage/patchprovider.h @@ -2,7 +2,8 @@ #define LIBGEODECOMP_STORAGE_PATCHPROVIDER_H #ifdef LIBGEODECOMP_WITH_HPX -#include +#include +#include #include #endif diff --git a/src/libgeodecomp/storage/test/unit/reorderingunstructuredgridtest.h b/src/libgeodecomp/storage/test/unit/reorderingunstructuredgridtest.h index d89146a4bf69..7cb5203dae44 100644 --- a/src/libgeodecomp/storage/test/unit/reorderingunstructuredgridtest.h +++ b/src/libgeodecomp/storage/test/unit/reorderingunstructuredgridtest.h @@ -19,8 +19,8 @@ #ifdef LIBGEODECOMP_WITH_HPX #include #include -#include -#include +#include +#include #endif using namespace LibGeoDecomp; -- 2.24.1