diff --git a/opm/simulators/utils/ParallelRestart.cpp b/opm/simulators/utils/ParallelRestart.cpp index d335fe0a0..179b20355 100644 --- a/opm/simulators/utils/ParallelRestart.cpp +++ b/opm/simulators/utils/ParallelRestart.cpp @@ -807,9 +807,6 @@ std::size_t packSize(const Tabulated1DFunction& data, packSize(data.yValues(), comm); } -template std::size_t packSize(const Tabulated1DFunction& data, - Dune::MPIHelper::MPICommunicator comm); - template std::size_t packSize(const SolventPvt& data, Dune::MPIHelper::MPICommunicator comm) @@ -820,9 +817,6 @@ std::size_t packSize(const SolventPvt& data, packSize(data.inverseSolventBMu(), comm); } -template std::size_t packSize(const SolventPvt& data, - Dune::MPIHelper::MPICommunicator comm); - template std::size_t packSize(const IntervalTabulated2DFunction& data, Dune::MPIHelper::MPICommunicator comm) @@ -834,16 +828,6 @@ std::size_t packSize(const IntervalTabulated2DFunction& data, packSize(data.yExtrapolate(), comm); } -template std::size_t packSize(const IntervalTabulated2DFunction& data, - Dune::MPIHelper::MPICommunicator comm); - -template -std::size_t packSize(const std::vector>& data, - Dune::MPIHelper::MPICommunicator comm); -template -std::size_t packSize(const std::map>& data, - Dune::MPIHelper::MPICommunicator comm); - template std::size_t packSize(const UniformXTabulated2DFunction& data, Dune::MPIHelper::MPICommunicator comm) @@ -854,9 +838,6 @@ std::size_t packSize(const UniformXTabulated2DFunction& data, packSize(data.interpolationGuide(), comm); } -template std::size_t packSize(const UniformXTabulated2DFunction& data, - Dune::MPIHelper::MPICommunicator comm); - template std::size_t packSize(const DryGasPvt& data, Dune::MPIHelper::MPICommunicator comm) @@ -867,9 +848,6 @@ std::size_t packSize(const DryGasPvt& data, packSize(data.inverseGasBMu(), comm); } -template std::size_t packSize(const DryGasPvt& data, - Dune::MPIHelper::MPICommunicator comm); - template std::size_t packSize(const GasPvtThermal& data, Dune::MPIHelper::MPICommunicator comm) @@ -889,9 +867,6 @@ std::size_t packSize(const GasPvtThermal& data, return size; } -template std::size_t packSize(const GasPvtThermal& data, - Dune::MPIHelper::MPICommunicator comm); - template std::size_t packSize(const GasPvtMultiplexer& data, Dune::MPIHelper::MPICommunicator comm) @@ -913,11 +888,6 @@ std::size_t packSize(const GasPvtMultiplexer& data, return size; } -template std::size_t packSize(const GasPvtMultiplexer& data, - Dune::MPIHelper::MPICommunicator comm); -template std::size_t packSize(const GasPvtMultiplexer& data, - Dune::MPIHelper::MPICommunicator comm); - template std::size_t packSize(const WetGasPvt& data, Dune::MPIHelper::MPICommunicator comm) @@ -934,9 +904,6 @@ std::size_t packSize(const WetGasPvt& data, packSize(data.vapPar1(), comm); } -template std::size_t packSize(const WetGasPvt& data, - Dune::MPIHelper::MPICommunicator comm); - template std::size_t packSize(const OilPvtMultiplexer& data, Dune::MPIHelper::MPICommunicator comm) @@ -961,11 +928,6 @@ std::size_t packSize(const OilPvtMultiplexer& data, return size; } -template std::size_t packSize(const OilPvtMultiplexer& data, - Dune::MPIHelper::MPICommunicator comm); -template std::size_t packSize(const OilPvtMultiplexer& data, - Dune::MPIHelper::MPICommunicator comm); - template std::size_t packSize(const ConstantCompressibilityOilPvt& data, Dune::MPIHelper::MPICommunicator comm) @@ -978,9 +940,6 @@ std::size_t packSize(const ConstantCompressibilityOilPvt& data, packSize(data.oilViscosibility(), comm); } -template std::size_t packSize(const ConstantCompressibilityOilPvt& data, - Dune::MPIHelper::MPICommunicator comm); - template std::size_t packSize(const DeadOilPvt& data, Dune::MPIHelper::MPICommunicator comm) @@ -991,9 +950,6 @@ std::size_t packSize(const DeadOilPvt& data, packSize(data.inverseOilBMu(), comm); } -template std::size_t packSize(const DeadOilPvt& data, - Dune::MPIHelper::MPICommunicator comm); - template std::size_t packSize(const LiveOilPvt& data, Dune::MPIHelper::MPICommunicator comm) @@ -1011,9 +967,6 @@ std::size_t packSize(const LiveOilPvt& data, packSize(data.vapPar2(), comm); } -template std::size_t packSize(const LiveOilPvt& data, - Dune::MPIHelper::MPICommunicator comm); - template std::size_t packSize(const OilPvtThermal& data, Dune::MPIHelper::MPICommunicator comm) @@ -1036,9 +989,6 @@ std::size_t packSize(const OilPvtThermal& data, return size; } -template std::size_t packSize(const OilPvtThermal& data, - Dune::MPIHelper::MPICommunicator comm); - template std::size_t packSize(const WaterPvtMultiplexer& data, Dune::MPIHelper::MPICommunicator comm) @@ -1057,11 +1007,6 @@ std::size_t packSize(const WaterPvtMultiplexer return size; } -template std::size_t packSize(const WaterPvtMultiplexer& data, - Dune::MPIHelper::MPICommunicator comm); -template std::size_t packSize(const WaterPvtMultiplexer& data, - Dune::MPIHelper::MPICommunicator comm); - template std::size_t packSize(const ConstantCompressibilityWaterPvt& data, Dune::MPIHelper::MPICommunicator comm) @@ -1074,9 +1019,6 @@ std::size_t packSize(const ConstantCompressibilityWaterPvt& data, packSize(data.waterViscosibility(), comm); } -template std::size_t packSize(const ConstantCompressibilityWaterPvt& data, - Dune::MPIHelper::MPICommunicator comm); - template std::size_t packSize(const WaterPvtThermal& data, Dune::MPIHelper::MPICommunicator comm) @@ -1107,9 +1049,6 @@ std::size_t packSize(const WaterPvtThermal& data, return size; } -template std::size_t packSize(const WaterPvtThermal& data, - Dune::MPIHelper::MPICommunicator comm); - template std::size_t packSize(const EclEpsScalingPointsInfo& data, Dune::MPIHelper::MPICommunicator comm) @@ -2681,9 +2620,6 @@ void pack(const Tabulated1DFunction& data, std::vector& buffer, pack(data.yValues(), buffer, position, comm); } -template void pack(const Tabulated1DFunction& data, std::vector& buffer, - int& position, Dune::MPIHelper::MPICommunicator comm); - template void pack(const IntervalTabulated2DFunction& data, std::vector& buffer, int& position, Dune::MPIHelper::MPICommunicator comm) @@ -2695,20 +2631,6 @@ void pack(const IntervalTabulated2DFunction& data, std::vector& bu pack(data.yExtrapolate(), buffer, position, comm); } -template void pack(const IntervalTabulated2DFunction& data, - std::vector& buffer, - int& position, Dune::MPIHelper::MPICommunicator comm); - -template -void pack(const std::vector>& data, - std::vector& buffer, - int& position, Dune::MPIHelper::MPICommunicator comm); - -template -void pack(const std::map>& data, - std::vector& buffer, - int& position, Dune::MPIHelper::MPICommunicator comm); - template void pack(const UniformXTabulated2DFunction& data, std::vector& buffer, int& position, Dune::MPIHelper::MPICommunicator comm) @@ -2719,10 +2641,6 @@ void pack(const UniformXTabulated2DFunction& data, std::vector& bu pack(data.interpolationGuide(), buffer, position, comm); } -template void pack(const UniformXTabulated2DFunction& data, - std::vector& buffer, - int& position, Dune::MPIHelper::MPICommunicator comm); - template void pack(const SolventPvt& data, std::vector& buffer, int& position, Dune::MPIHelper::MPICommunicator comm) @@ -2733,10 +2651,6 @@ void pack(const SolventPvt& data, std::vector& buffer, int& positi pack(data.inverseSolventBMu(), buffer, position, comm); } -template void pack(const SolventPvt& data, - std::vector& buffer, int& position, - Dune::MPIHelper::MPICommunicator comm); - template void pack(const GasPvtMultiplexer& data, std::vector& buffer, int& position, @@ -2757,13 +2671,6 @@ void pack(const GasPvtMultiplexer& data, } } -template void pack(const GasPvtMultiplexer& data, - std::vector& buffer, int& position, - Dune::MPIHelper::MPICommunicator comm); -template void pack(const GasPvtMultiplexer& data, - std::vector& buffer, int& position, - Dune::MPIHelper::MPICommunicator comm); - template void pack(const DryGasPvt& data, std::vector& buffer, int& position, Dune::MPIHelper::MPICommunicator comm) @@ -2774,10 +2681,6 @@ void pack(const DryGasPvt& data, std::vector& buffer, int& positio pack(data.inverseGasBMu(), buffer, position, comm); } -template void pack(const DryGasPvt& data, - std::vector& buffer, int& position, - Dune::MPIHelper::MPICommunicator comm); - template void pack(const GasPvtThermal& data, std::vector& buffer, int& position, @@ -2796,10 +2699,6 @@ void pack(const GasPvtThermal& data, pack(*data.isoThermalPvt(), buffer, position, comm); } -template void pack(const GasPvtThermal& data, - std::vector& buffer, int& position, - Dune::MPIHelper::MPICommunicator comm); - template void pack(const WetGasPvt& data, std::vector& buffer, int& position, Dune::MPIHelper::MPICommunicator comm) @@ -2816,10 +2715,6 @@ void pack(const WetGasPvt& data, std::vector& buffer, int& positio pack(data.vapPar1(), buffer, position, comm); } -template void pack(const WetGasPvt& data, - std::vector& buffer, int& position, - Dune::MPIHelper::MPICommunicator comm); - template void pack(const OilPvtMultiplexer& data, std::vector& buffer, int& position, @@ -2843,13 +2738,6 @@ void pack(const OilPvtMultiplexer& data, } } -template void pack(const OilPvtMultiplexer& data, - std::vector& buffer, int& position, - Dune::MPIHelper::MPICommunicator comm); -template void pack(const OilPvtMultiplexer& data, - std::vector& buffer, int& position, - Dune::MPIHelper::MPICommunicator comm); - template void pack(const ConstantCompressibilityOilPvt& data, std::vector& buffer, int& position, @@ -2863,10 +2751,6 @@ void pack(const ConstantCompressibilityOilPvt& data, pack(data.oilViscosibility(), buffer, position, comm); } -template void pack(const ConstantCompressibilityOilPvt& data, - std::vector& buffer, int& position, - Dune::MPIHelper::MPICommunicator comm); - template void pack(const DeadOilPvt& data, std::vector& buffer, int& position, @@ -2878,10 +2762,6 @@ void pack(const DeadOilPvt& data, pack(data.inverseOilBMu(), buffer, position, comm); } -template void pack(const DeadOilPvt& data, - std::vector& buffer, int& position, - Dune::MPIHelper::MPICommunicator comm); - template void pack(const LiveOilPvt& data, std::vector& buffer, int& position, @@ -2900,10 +2780,6 @@ void pack(const LiveOilPvt& data, pack(data.vapPar2(), buffer, position, comm); } -template void pack(const LiveOilPvt& data, - std::vector& buffer, int& position, - Dune::MPIHelper::MPICommunicator comm); - template void pack(const OilPvtThermal& data, std::vector& buffer, int& position, @@ -2925,10 +2801,6 @@ void pack(const OilPvtThermal& data, pack(*data.isoThermalPvt(), buffer, position, comm); } -template void pack(const OilPvtThermal& data, - std::vector& buffer, int& position, - Dune::MPIHelper::MPICommunicator comm); - template void pack(const WaterPvtMultiplexer& data, std::vector& buffer, int& position, @@ -2946,13 +2818,6 @@ void pack(const WaterPvtMultiplexer& data, } } -template void pack(const WaterPvtMultiplexer& data, - std::vector& buffer, int& position, - Dune::MPIHelper::MPICommunicator comm); -template void pack(const WaterPvtMultiplexer& data, - std::vector& buffer, int& position, - Dune::MPIHelper::MPICommunicator comm); - template void pack(const ConstantCompressibilityWaterPvt& data, std::vector& buffer, int& position, @@ -2966,10 +2831,6 @@ void pack(const ConstantCompressibilityWaterPvt& data, pack(data.waterViscosibility(), buffer, position, comm); } -template void pack(const ConstantCompressibilityWaterPvt& data, - std::vector& buffer, int& position, - Dune::MPIHelper::MPICommunicator comm); - template void pack(const WaterPvtThermal& data, std::vector& buffer, int& position, @@ -2999,10 +2860,6 @@ void pack(const WaterPvtThermal& data, } } -template void pack(const WaterPvtThermal& data, - std::vector& buffer, int& position, - Dune::MPIHelper::MPICommunicator comm); - void pack(const OilVaporizationProperties& data, std::vector& buffer, int& position, Dune::MPIHelper::MPICommunicator comm) @@ -4856,9 +4713,6 @@ void unpack(Tabulated1DFunction& data, std::vector& buffer, data = Tabulated1DFunction(xValues, yValues, false); } -template void unpack(Tabulated1DFunction& data, std::vector& buffer, - int& position, Dune::MPIHelper::MPICommunicator comm); - template void unpack(IntervalTabulated2DFunction& data, std::vector& buffer, int& position, Dune::MPIHelper::MPICommunicator comm) @@ -4875,18 +4729,6 @@ void unpack(IntervalTabulated2DFunction& data, std::vector& buffer xExtrapolate, yExtrapolate); } -template void unpack(IntervalTabulated2DFunction& data, - std::vector& buffer, - int& position, Dune::MPIHelper::MPICommunicator comm); - -template void unpack(std::vector>& data, - std::vector& buffer, - int& position, Dune::MPIHelper::MPICommunicator comm); - -template void unpack(std::map>& data, - std::vector& buffer, - int& position, Dune::MPIHelper::MPICommunicator comm); - template void unpack(UniformXTabulated2DFunction& data, std::vector& buffer, int& position, Dune::MPIHelper::MPICommunicator comm) @@ -4902,10 +4744,6 @@ void unpack(UniformXTabulated2DFunction& data, std::vector& buffer interpolationGuide); } -template void unpack(UniformXTabulated2DFunction& data, - std::vector& buffer, - int& position, Dune::MPIHelper::MPICommunicator comm); - template void unpack(SolventPvt& data, std::vector& buffer, int& position, Dune::MPIHelper::MPICommunicator comm) @@ -4922,10 +4760,6 @@ void unpack(SolventPvt& data, std::vector& buffer, int& position, solventMu, inverseSolventBMu); } -template void unpack(SolventPvt& data, - std::vector& buffer, int& position, - Dune::MPIHelper::MPICommunicator comm); - template void unpack(GasPvtMultiplexer& data, std::vector& buffer, int& position, @@ -4951,13 +4785,6 @@ void unpack(GasPvtMultiplexer& data, data = GasPvtMultiplexer(approach, pvt); } -template void unpack(GasPvtMultiplexer& data, - std::vector& buffer, int& position, - Dune::MPIHelper::MPICommunicator comm); -template void unpack(GasPvtMultiplexer& data, - std::vector& buffer, int& position, - Dune::MPIHelper::MPICommunicator comm); - template void unpack(DryGasPvt& data, std::vector& buffer, int& position, Dune::MPIHelper::MPICommunicator comm) @@ -4974,10 +4801,6 @@ void unpack(DryGasPvt& data, std::vector& buffer, int& position, gasMu, inverseGasBMu); } -template void unpack(DryGasPvt& data, - std::vector& buffer, int& position, - Dune::MPIHelper::MPICommunicator comm); - template void unpack(GasPvtThermal& data, std::vector& buffer, int& position, @@ -5010,10 +4833,6 @@ void unpack(GasPvtThermal& data, enableInternalEnergy); } -template void unpack(GasPvtThermal& data, - std::vector& buffer, int& position, - Dune::MPIHelper::MPICommunicator comm); - template void unpack(WetGasPvt& data, std::vector& buffer, int& position, Dune::MPIHelper::MPICommunicator comm) @@ -5043,10 +4862,6 @@ void unpack(WetGasPvt& data, std::vector& buffer, int& position, saturationPressure, vapPar1); } -template void unpack(WetGasPvt& data, - std::vector& buffer, int& position, - Dune::MPIHelper::MPICommunicator comm); - template void unpack(OilPvtMultiplexer& data, std::vector& buffer, int& position, @@ -5076,13 +4891,6 @@ void unpack(OilPvtMultiplexer& data, data = OilPvtMultiplexer(approach, pvt); } -template void unpack(OilPvtMultiplexer& data, - std::vector& buffer, int& position, - Dune::MPIHelper::MPICommunicator comm); -template void unpack(OilPvtMultiplexer& data, - std::vector& buffer, int& position, - Dune::MPIHelper::MPICommunicator comm); - template void unpack(ConstantCompressibilityOilPvt& data, std::vector& buffer, int& position, @@ -5106,10 +4914,6 @@ void unpack(ConstantCompressibilityOilPvt& data, oilViscosibility); } -template void unpack(ConstantCompressibilityOilPvt& data, - std::vector& buffer, int& position, - Dune::MPIHelper::MPICommunicator comm); - template void unpack(DeadOilPvt& data, std::vector& buffer, int& position, @@ -5127,10 +4931,6 @@ void unpack(DeadOilPvt& data, oilMu, inverseOilBMu); } -template void unpack(DeadOilPvt& data, - std::vector& buffer, int& position, - Dune::MPIHelper::MPICommunicator comm); - template void unpack(LiveOilPvt& data, std::vector& buffer, int& position, @@ -5169,10 +4969,6 @@ void unpack(LiveOilPvt& data, vapPar2); } -template void unpack(LiveOilPvt& data, - std::vector& buffer, int& position, - Dune::MPIHelper::MPICommunicator comm); - template void unpack(OilPvtThermal& data, std::vector& buffer, int& position, @@ -5210,10 +5006,6 @@ void unpack(OilPvtThermal& data, enableInternalEnergy); } -template void unpack(OilPvtThermal& data, - std::vector& buffer, int& position, - Dune::MPIHelper::MPICommunicator comm); - template void unpack(WaterPvtMultiplexer& data, std::vector& buffer, int& position, @@ -5235,13 +5027,6 @@ void unpack(WaterPvtMultiplexer& data, data = WaterPvtMultiplexer(approach, pvt); } -template void unpack(WaterPvtMultiplexer& data, - std::vector& buffer, int& position, - Dune::MPIHelper::MPICommunicator comm); -template void unpack(WaterPvtMultiplexer& data, - std::vector& buffer, int& position, - Dune::MPIHelper::MPICommunicator comm); - template void unpack(ConstantCompressibilityWaterPvt& data, std::vector& buffer, int& position, @@ -5265,10 +5050,6 @@ void unpack(ConstantCompressibilityWaterPvt& data, waterViscosibility); } -template void unpack(ConstantCompressibilityWaterPvt& data, - std::vector& buffer, int& position, - Dune::MPIHelper::MPICommunicator comm); - template void unpack(WaterPvtThermal& data, std::vector& buffer, int& position, @@ -5318,10 +5099,6 @@ void unpack(WaterPvtThermal& data, enableInternalEnergy); } -template void unpack(WaterPvtThermal& data, - std::vector& buffer, int& position, - Dune::MPIHelper::MPICommunicator comm); - void unpack(OilVaporizationProperties& data, std::vector& buffer, int& position, Dune::MPIHelper::MPICommunicator comm) @@ -6840,9 +6617,10 @@ INSTANTIATE_PACK_VECTOR(std::vector) INSTANTIATE_PACK_VECTOR(bool) INSTANTIATE_PACK_VECTOR(char) INSTANTIATE_PACK_VECTOR(int) -INSTANTIATE_PACK_VECTOR(Opm::Tabulated1DFunction) +INSTANTIATE_PACK_VECTOR(Tabulated1DFunction) INSTANTIATE_PACK_VECTOR(std::array) INSTANTIATE_PACK_VECTOR(EclEpsScalingPointsInfo) +INSTANTIATE_PACK_VECTOR(IntervalTabulated2DFunction) #undef INSTANTIATE_PACK_VECTOR #define INSTANTIATE_PACK_SHARED_PTR(...) \ @@ -6881,6 +6659,27 @@ INSTANTIATE_PACK(unsigned char) INSTANTIATE_PACK(EclEpsScalingPointsInfo) INSTANTIATE_PACK(EclTwoPhaseApproach) INSTANTIATE_PACK(EclMultiplexerApproach) +INSTANTIATE_PACK(Tabulated1DFunction) +INSTANTIATE_PACK(IntervalTabulated2DFunction) +INSTANTIATE_PACK(UniformXTabulated2DFunction) +INSTANTIATE_PACK(std::map>) +INSTANTIATE_PACK(SolventPvt) +INSTANTIATE_PACK(GasPvtMultiplexer) +INSTANTIATE_PACK(GasPvtMultiplexer) +INSTANTIATE_PACK(DryGasPvt) +INSTANTIATE_PACK(GasPvtThermal) +INSTANTIATE_PACK(WetGasPvt) +INSTANTIATE_PACK(OilPvtMultiplexer) +INSTANTIATE_PACK(OilPvtMultiplexer) +INSTANTIATE_PACK(ConstantCompressibilityOilPvt) +INSTANTIATE_PACK(DeadOilPvt) +INSTANTIATE_PACK(LiveOilPvt) +INSTANTIATE_PACK(OilPvtThermal) +INSTANTIATE_PACK(WaterPvtMultiplexer) +INSTANTIATE_PACK(WaterPvtMultiplexer) +INSTANTIATE_PACK(ConstantCompressibilityWaterPvt) +INSTANTIATE_PACK(WaterPvtThermal) + #undef INSTANTIATE_PACK } // end namespace Mpi