diff --git a/src/pe/vtk/SphereVtkOutput.cpp b/src/pe/vtk/SphereVtkOutput.cpp index a0f6045fa5d3ae9affb171d3f308e3ae7754babe..90672a0f60d3ae642f87d21f325a5d3fcb992e9e 100644 --- a/src/pe/vtk/SphereVtkOutput.cpp +++ b/src/pe/vtk/SphereVtkOutput.cpp @@ -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< 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 >(), "uid", uint_c(1) ) ); return attributes; } diff --git a/src/pe/vtk/SphereVtkOutput.h b/src/pe/vtk/SphereVtkOutput.h index 756a2273ef4db8ede0976643b264c456f90a9cdc..238c1fa8e305fc95813ce798d841b7705b90f95b 100644 --- a/src/pe/vtk/SphereVtkOutput.h +++ b/src/pe/vtk/SphereVtkOutput.h @@ -90,6 +90,9 @@ void SphereVtkOutput::push( std::ostream& os, const uint_t data, const uint_t po case 5: vtk::toStream( os, numeric_cast< id_t >(bodies_.at( point )->getTopSuperBody()->getSystemID()) ); 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 case 5: b64 << numeric_cast< id_t >(bodies_.at( point )->getTopSuperBody()->getSystemID()); break; + case 6: + b64 << numeric_cast< id_t >(bodies_.at( point )->getTopSuperBody()->getID()); + break; } }