test()
{
{
- const unsigned int n_properties_per_particle = 3;
- Particles::PropertyPool pool(n_properties_per_particle);
+ const unsigned int n_properties_per_particle = 3;
+ Particles::PropertyPool<dim> pool(n_properties_per_particle);
Point<2> position;
position(0) = 0.3;
test()
{
{
- const unsigned int n_properties_per_particle = 3;
- Particles::PropertyPool pool(n_properties_per_particle);
+ const unsigned int n_properties_per_particle = 3;
+ Particles::PropertyPool<dim, spacedim> pool(n_properties_per_particle);
Point<spacedim> position;
test()
{
{
- const unsigned int n_properties_per_particle = 3;
- Particles::PropertyPool pool(n_properties_per_particle);
+ const unsigned int n_properties_per_particle = 3;
+ Particles::PropertyPool<dim> pool(n_properties_per_particle);
Point<2> position;
position(0) = 0.3;
test()
{
{
- const unsigned int n_properties_per_particle = 3;
- Particles::PropertyPool pool(n_properties_per_particle);
+ const unsigned int n_properties_per_particle = 3;
+ Particles::PropertyPool<dim> pool(n_properties_per_particle);
Point<dim> position;
position(0) = 0.3;
test()
{
{
- Particles::PropertyPool pool(1);
+ const int dim = 2;
+ const int spacedim = 2;
- typename Particles::PropertyPool::Handle handle =
+ Particles::PropertyPool<dim, spacedim> pool(1);
+
+ typename Particles::PropertyPool<dim, spacedim>::Handle handle =
pool.allocate_properties_array();
pool.get_properties(handle)[0] = 2.5;
test()
{
{
- const unsigned int n_properties = 3;
- Particles::PropertyPool pool(n_properties);
+ const int dim = 2;
+ const int spacedim = 2;
- typename Particles::PropertyPool::Handle handle =
+ const unsigned int n_properties = 3;
+ Particles::PropertyPool<dim, spacedim> pool(n_properties);
+
+ typename Particles::PropertyPool<dim, spacedim>::Handle handle =
pool.allocate_properties_array();
pool.get_properties(handle)[0] = 1.2;
Point<spacedim> location;
Point<dim> reference_location;
- location[spacedim - 1] = 0.3;
- reference_location[dim - 1] = 0.5;
- const unsigned int id = 6;
- Particles::PropertyPool property_pool(2);
+ location[spacedim - 1] = 0.3;
+ reference_location[dim - 1] = 0.5;
+ const unsigned int id = 6;
+ Particles::PropertyPool<dim, spacedim> property_pool(2);
Particles::Particle<dim, spacedim> particle(location,
reference_location,
std::istringstream iss(oss.str());
boost::archive::text_iarchive ia(iss, boost::archive::no_header);
- Particles::PropertyPool property_pool(2);
+ Particles::PropertyPool<dim, spacedim> property_pool(2);
Particles::Particle<dim, spacedim> particle;
particle.set_property_pool(property_pool);