View on GitHub

Vistle

Distributed Data-parallel Scientific Visualization in VR

structuredgrid_impl.h
Go to the documentation of this file.
1//-------------------------------------------------------------------------
2// STRUCTURED GRID CLASS IMPL H
3// *
4// * Structured Grid Container Object
5//-------------------------------------------------------------------------
6#ifndef STRUCTURED_GRID_IMPL_H
7#define STRUCTURED_GRID_IMPL_H
8
9namespace vistle {
10
11// BOOST SERIALIZATION METHOD
12//-------------------------------------------------------------------------
13template<class Archive>
14void StructuredGrid::Data::serialize(Archive &ar)
15{
16 ar &V_NAME(ar, "base_structuredGridBase", serialize_base<Base::Data>(ar, *this));
17 ar &V_NAME(ar, "num_divisions", numDivisions);
18 ar &V_NAME(ar, "coords_x", x[0]);
19 ar &V_NAME(ar, "coords_y", x[1]);
20 ar &V_NAME(ar, "coords_z", x[2]);
21
22 for (int c = 0; c < 3; c++) {
23 std::string nvpTag = "ghostLayers" + std::to_string(c);
24 std::string tag0 = nvpTag + "0";
25 std::string tag1 = nvpTag + "1";
26 ar &V_NAME(ar, tag0.c_str(), ghostLayers[c][0]);
27 ar &V_NAME(ar, tag1.c_str(), ghostLayers[c][1]);
28
29 ar &V_NAME(ar, ("indexoffset" + std::to_string(c)).c_str(), indexOffset[c]);
30 }
31}
32
33} // namespace vistle
34
35#endif /* STRUCTURED_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
Definition: allobjects.cpp:30