38 lines
1.5 KiB
Diff
38 lines
1.5 KiB
Diff
|
From 81f9b86cca275f053e914c7c42e864c3af9fed8e Mon Sep 17 00:00:00 2001
|
||
|
From: Michael Kuron <mkuron@icp.uni-stuttgart.de>
|
||
|
Date: Thu, 13 Sep 2018 11:09:40 +0200
|
||
|
Subject: [PATCH] Fix PARTIAL_PERIODIC on big-endian platforms
|
||
|
|
||
|
---
|
||
|
src/core/global.cpp | 2 +-
|
||
|
src/core/utils/serialization/List.hpp | 3 +++
|
||
|
2 files changed, 4 insertions(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/src/core/global.cpp b/src/core/global.cpp
|
||
|
index 75959c3246..9164c5e0b4 100644
|
||
|
--- a/src/core/global.cpp
|
||
|
+++ b/src/core/global.cpp
|
||
|
@@ -147,7 +147,7 @@ const std::unordered_map<int, Datafield> fields{
|
||
|
{&nptiso.piston, Datafield::Type::DOUBLE, 1,
|
||
|
"npt_piston"}}, /* 27 from pressure.cpp */
|
||
|
{FIELD_PERIODIC,
|
||
|
- {&periodic, Datafield::Type::BOOL, 3,
|
||
|
+ {&periodic, Datafield::Type::INT, 1,
|
||
|
"periodicity"}}, /* 28 from grid.cpp */
|
||
|
{FIELD_SKIN,
|
||
|
{&skin, Datafield::Type::DOUBLE, 1, "skin"}}, /* 29 from integrate.cpp */
|
||
|
diff --git a/src/core/utils/serialization/List.hpp b/src/core/utils/serialization/List.hpp
|
||
|
index fdc2d172ee..ae7fc37db3 100644
|
||
|
--- a/src/core/utils/serialization/List.hpp
|
||
|
+++ b/src/core/utils/serialization/List.hpp
|
||
|
@@ -20,6 +20,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
|
#define CORE_UTILS_SERIALIZATION_LIST_HPP
|
||
|
|
||
|
#include <boost/serialization/array.hpp>
|
||
|
+#if BOOST_VERSION >= 106400 && BOOST_VERSION < 106500
|
||
|
+#include <boost/serialization/array_wrapper.hpp>
|
||
|
+#endif
|
||
|
#include <boost/serialization/split_free.hpp>
|
||
|
|
||
|
#include "core/utils/List.hpp"
|