*/
particle_iterator
insert_particle(
- const typename PropertyPool<dim, spacedim>::Handle handle,
+ const typename PropertyPool<dim, spacedim>::Handle
+ tria_attached_data_index,
const typename Triangulation<dim, spacedim>::cell_iterator &cell);
/**
* to check where the particle data was registered in the corresponding
* triangulation object.
*/
- unsigned int handle;
+ unsigned int tria_attached_data_index;
/**
* Tolerance to be used for GeometryInfo<dim>::is_inside_cell().
, size_callback()
, store_callback()
, load_callback()
- , handle(numbers::invalid_unsigned_int)
+ , tria_attached_data_index(numbers::invalid_unsigned_int)
, tria_listeners()
{
reset_particle_container(particles);
, size_callback()
, store_callback()
, load_callback()
- , handle(numbers::invalid_unsigned_int)
+ , tria_attached_data_index(numbers::invalid_unsigned_int)
, triangulation_cache(
std::make_unique<GridTools::Cache<dim, spacedim>>(triangulation,
mapping))
ghost_particles_cache.ghost_particles_by_domain =
particle_handler.ghost_particles_cache.ghost_particles_by_domain;
- handle = particle_handler.handle;
+ tria_attached_data_index = particle_handler.tria_attached_data_index;
}
return this->pack_callback(cell_iterator, cell_status);
};
- handle = const_cast<Triangulation<dim, spacedim> *>(&*triangulation)
- ->register_data_attach(callback_function,
- /*returns_variable_size_data=*/true);
+ tria_attached_data_index =
+ const_cast<Triangulation<dim, spacedim> *>(&*triangulation)
+ ->register_data_attach(callback_function,
+ /*returns_variable_size_data=*/true);
}
register_data_attach();
// Check if something was stored and load it
- if (handle != numbers::invalid_unsigned_int)
+ if (tria_attached_data_index != numbers::invalid_unsigned_int)
{
const auto callback_function =
[this](const typename Triangulation<dim, spacedim>::cell_iterator
};
const_cast<Triangulation<dim, spacedim> *>(&*triangulation)
- ->notify_ready_to_unpack(handle, callback_function);
+ ->notify_ready_to_unpack(tria_attached_data_index, callback_function);
// Reset handle and update global numbers.
- handle = numbers::invalid_unsigned_int;
+ tria_attached_data_index = numbers::invalid_unsigned_int;
update_cached_numbers();
}
}