Commit ada28548 authored by Franjo's avatar Franjo

Modified streaming operators meshOctreeCubeCoordinates

parent 9943ea6e
......@@ -523,16 +523,23 @@ inline Istream& operator>>
meshOctreeCubeCoordinates& cc
)
{
// Read beginning of meshOctreeCubeCoordinates
//- Read beginning of meshOctreeCubeCoordinates
is.readBegin("meshOctreeCubeCoordinates");
//- read the level in the octree structure
label l;
is >> l;
cc.level_ = l;
//- read x, y and z coordinates
is.readBegin("meshOctreeCubeCoordinates");
is >> cc.posX_;
is >> cc.posY_;
is >> cc.posZ_;
is.readEnd("meshOctreeCubeCoordinates");
// Read end of meshOctreeCubeCoordinates
is.readEnd("meshOctreeCubeCoordinates");
......@@ -551,10 +558,15 @@ inline Ostream& operator<<
os << token::BEGIN_LIST;
os << label(cc.level_) << token::SPACE;
os << token::BEGIN_LIST;
os << cc.posX_ << token::SPACE;
os << cc.posY_ << token::SPACE;
os << cc.posZ_ << token::END_LIST;
os << token::END_LIST;
// Check state of Ostream
os.check("operator<<(Ostream&, const meshOctreeCubeCoordinates");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment