Skip to content
Snippets Groups Projects
Commit 67f2a90d authored by Michael Kuron's avatar Michael Kuron :mortar_board:
Browse files

Add user ID to sphere VTK output

parent 5af6b820
No related merge requests found
...@@ -41,6 +41,7 @@ std::vector< SphereVtkOutput::Attributes > SphereVtkOutput::getAttributes() cons ...@@ -41,6 +41,7 @@ std::vector< SphereVtkOutput::Attributes > SphereVtkOutput::getAttributes() cons
attributes.push_back( Attributes( vtk::typeToString< float >(), "orientation", uint_c(3) ) ); attributes.push_back( Attributes( vtk::typeToString< float >(), "orientation", uint_c(3) ) );
attributes.push_back( Attributes( vtk::typeToString< int >(), "rank", uint_c(1) ) ); attributes.push_back( Attributes( vtk::typeToString< int >(), "rank", uint_c(1) ) );
attributes.push_back( Attributes( vtk::typeToString< id_t >(), "id", uint_c(1) ) ); attributes.push_back( Attributes( vtk::typeToString< id_t >(), "id", uint_c(1) ) );
attributes.push_back( Attributes( vtk::typeToString< id_t >(), "uid", uint_c(1) ) );
return attributes; return attributes;
} }
......
...@@ -90,6 +90,9 @@ void SphereVtkOutput::push( std::ostream& os, const uint_t data, const uint_t po ...@@ -90,6 +90,9 @@ void SphereVtkOutput::push( std::ostream& os, const uint_t data, const uint_t po
case 5: case 5:
vtk::toStream( os, numeric_cast< id_t >(bodies_.at( point )->getTopSuperBody()->getSystemID()) ); vtk::toStream( os, numeric_cast< id_t >(bodies_.at( point )->getTopSuperBody()->getSystemID()) );
break; break;
case 6:
vtk::toStream( os, numeric_cast< id_t >(bodies_.at( point )->getTopSuperBody()->getID()) );
break;
} }
} }
...@@ -121,6 +124,9 @@ void SphereVtkOutput::push( vtk::Base64Writer& b64, const uint_t data, const uin ...@@ -121,6 +124,9 @@ void SphereVtkOutput::push( vtk::Base64Writer& b64, const uint_t data, const uin
case 5: case 5:
b64 << numeric_cast< id_t >(bodies_.at( point )->getTopSuperBody()->getSystemID()); b64 << numeric_cast< id_t >(bodies_.at( point )->getTopSuperBody()->getSystemID());
break; break;
case 6:
b64 << numeric_cast< id_t >(bodies_.at( point )->getTopSuperBody()->getID());
break;
} }
} }
......
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