From f5653af39221c281c0d686f094d0a6099d05fd8d Mon Sep 17 00:00:00 2001 From: Joakim Hove Date: Tue, 5 Jan 2021 11:08:00 +0100 Subject: [PATCH] Output typeid(T).name() for types without packing support --- opm/simulators/utils/ParallelRestart.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/opm/simulators/utils/ParallelRestart.hpp b/opm/simulators/utils/ParallelRestart.hpp index aad0ce9be..fe8421860 100644 --- a/opm/simulators/utils/ParallelRestart.hpp +++ b/opm/simulators/utils/ParallelRestart.hpp @@ -34,7 +34,9 @@ #include #include #include +#include #include +#include #include #include @@ -58,7 +60,8 @@ template std::size_t packSize(const T&, Dune::MPIHelper::MPICommunicator, std::integral_constant) { - OPM_THROW(std::logic_error, "Packing not (yet) supported for this non-pod type."); + std::string msg = std::string{"Packing not (yet) supported for non-pod type: "} + typeid(T).name(); + OPM_THROW(std::logic_error, msg); } template