View on GitHub

Vistle

Distributed Data-parallel Scientific Visualization in VR

uniformgrid_impl.h
Go to the documentation of this file.
1//-------------------------------------------------------------------------
2// UNIFORM GRID CLASS IMPL H
3// *
4// * Uniform Grid Container Object
5//-------------------------------------------------------------------------
6#ifndef UNIFORM_GRID_IMPL_H
7#define UNIFORM_GRID_IMPL_H
8
9namespace vistle {
10
11// BOOST SERIALIZATION METHOD
12//-------------------------------------------------------------------------
13template<class Archive>
14void UniformGrid::Data::serialize(Archive &ar)
15{
16 ar &V_NAME(ar, "base_structuredGridBase", serialize_base<Base::Data>(ar, *this));
17 ar &V_NAME(ar, "numElements", numDivisions);
18 ar &V_NAME(ar, "min", min);
19 ar &V_NAME(ar, "max", max);
20
21 for (int c = 0; c < 3; c++) {
22 std::string nvpTag = "ghostLayers" + std::to_string(c);
23 std::string tag0 = nvpTag + "0";
24 std::string tag1 = nvpTag + "1";
25 ar &V_NAME(ar, tag0.c_str(), ghostLayers[c][0]);
26 ar &V_NAME(ar, tag1.c_str(), ghostLayers[c][1]);
27
28 ar &V_NAME(ar, ("indexoffset" + std::to_string(c)).c_str(), indexOffset[c]);
29 }
30}
31
32} // namespace vistle
33
34#endif /* UNIFORM_GRID_IMPL_H */
#define V_NAME(ar, name, obj)
Definition: archives_config.h:441
void serialize(Archive &ar, vistle::Vector1 &v, const unsigned int version)
Definition: vector.h:105
static T min(T a, T b)
Definition: messages.cpp:28
Definition: allobjects.cpp:30