View on GitHub

Vistle

Distributed Data-parallel Scientific Visualization in VR

rectilineargrid_impl.h
Go to the documentation of this file.
1//-------------------------------------------------------------------------
2// RECTILINEAR GRID CLASS IMPL H
3// *
4// * Rectilinear Grid Container Object
5//-------------------------------------------------------------------------
6#ifndef RECTILINEAR_GRID_IMPL_H
7#define RECTILINEAR_GRID_IMPL_H
8
9namespace vistle {
10
11// BOOST SERIALIZATION METHOD
12//-------------------------------------------------------------------------
13template<class Archive>
15{
16 ar &V_NAME(ar, "base_structuredGridBase", serialize_base<Base::Data>(ar, *this));
17 ar &V_NAME(ar, "coords_x", coords[0]);
18 ar &V_NAME(ar, "coords_y", coords[1]);
19 ar &V_NAME(ar, "coords_z", coords[2]);
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 /* RECTILINEAR_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