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

Squirmer VTK output

parent ce490edd
No related merge requests found
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include "core/DataTypes.h" #include "core/DataTypes.h"
#include "SphereVtkOutput.h" #include "SphereVtkOutput.h"
#include "pe/rigidbody/BodyStorage.h" #include "pe/rigidbody/BodyStorage.h"
#include "pe/rigidbody/Squirmer.h"
#include "core/selectable/IsSetSelected.h" #include "core/selectable/IsSetSelected.h"
#include "core/uid/GlobalState.h" #include "core/uid/GlobalState.h"
...@@ -54,7 +55,7 @@ void SphereVtkOutput::configure() ...@@ -54,7 +55,7 @@ void SphereVtkOutput::configure()
for( auto it = bs[0].begin(); it != bs[0].end(); ++it ) for( auto it = bs[0].begin(); it != bs[0].end(); ++it )
{ {
if (it->getTypeID() == Sphere::getStaticTypeID()) if (it->getTypeID() == Sphere::getStaticTypeID() || it->getTypeID() == Squirmer::getStaticTypeID())
bodies_.push_back( static_cast<ConstSphereID> (*it) ); bodies_.push_back( static_cast<ConstSphereID> (*it) );
if (it->getTypeID() == Union<boost::tuple<Sphere> >::getStaticTypeID()) if (it->getTypeID() == Union<boost::tuple<Sphere> >::getStaticTypeID())
{ {
...@@ -65,6 +66,33 @@ void SphereVtkOutput::configure() ...@@ -65,6 +66,33 @@ void SphereVtkOutput::configure()
bodies_.push_back( static_cast<ConstSphereID> (*it2) ); bodies_.push_back( static_cast<ConstSphereID> (*it2) );
} }
} }
if (it->getTypeID() == Union<boost::tuple<Squirmer> >::getStaticTypeID())
{
auto un = static_cast<Union<boost::tuple<Squirmer> > const * > (*it);
for( auto it2 = un->begin(); it2 != un->end(); ++it2 )
{
if (it2->getTypeID() == Squirmer::getStaticTypeID())
bodies_.push_back( static_cast<ConstSphereID> (*it2) );
}
}
if (it->getTypeID() == Union<boost::tuple<Sphere,Squirmer> >::getStaticTypeID())
{
auto un = static_cast<Union<boost::tuple<Sphere,Squirmer> > const * > (*it);
for( auto it2 = un->begin(); it2 != un->end(); ++it2 )
{
if (it2->getTypeID() == Sphere::getStaticTypeID() || it2->getTypeID() == Squirmer::getStaticTypeID())
bodies_.push_back( static_cast<ConstSphereID> (*it2) );
}
}
if (it->getTypeID() == Union<boost::tuple<Squirmer,Sphere> >::getStaticTypeID())
{
auto un = static_cast<Union<boost::tuple<Squirmer,Sphere> > const * > (*it);
for( auto it2 = un->begin(); it2 != un->end(); ++it2 )
{
if (it2->getTypeID() == Sphere::getStaticTypeID() || it2->getTypeID() == Squirmer::getStaticTypeID())
bodies_.push_back( static_cast<ConstSphereID> (*it2) );
}
}
} }
} }
} }
......
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