deal.II version GIT relicensing-2287-g6548a49e0a 2024-12-20 18:30:00+00:00
|
#include <deal.II/base/mpi_remote_point_evaluation.h>
Public Member Functions | |
CellData (const Triangulation< dim, spacedim > &triangulation) | |
std_cxx20::ranges::iota_view< unsigned int, unsigned int > | cell_indices () const |
Triangulation< dim, spacedim >::active_cell_iterator | get_active_cell_iterator (const unsigned int cell) const |
ArrayView< const Point< dim > > | get_unit_points (const unsigned int cell) const |
template<typename T > | |
ArrayView< T > | get_data_view (const unsigned int cell, const ArrayView< T > &values) const |
Public Attributes | |
std::vector< std::pair< int, int > > | cells |
std::vector< unsigned int > | reference_point_ptrs |
std::vector< Point< dim > > | reference_point_values |
Private Attributes | |
const Triangulation< dim, spacedim > & | triangulation |
Helper class to store and to access data of points positioned in processed cells.
Definition at line 190 of file mpi_remote_point_evaluation.h.
Utilities::MPI::RemotePointEvaluation< dim, spacedim >::CellData::CellData | ( | const Triangulation< dim, spacedim > & | triangulation | ) |
Constructor.
triangulation | Triangulation of the domain. |
Definition at line 270 of file mpi_remote_point_evaluation.cc.
std_cxx20::ranges::iota_view< unsigned int, unsigned int > Utilities::MPI::RemotePointEvaluation< dim, spacedim >::CellData::cell_indices | ( | ) | const |
Return an object that can be thought of as an array containing all indices from zero (inclusive) to the total number of cells where points reside given by cells.size()
(exclusive). This allows one to write code using range-based for
loops of the following kind:
Here, we are looping over all cells where points reside and use the index to call the functions get_active_cell_iterator(), get_unit_points(), and get_data_view().
Definition at line 279 of file mpi_remote_point_evaluation.cc.
Triangulation< dim, spacedim >::active_cell_iterator Utilities::MPI::RemotePointEvaluation< dim, spacedim >::CellData::get_active_cell_iterator | ( | const unsigned int | cell | ) | const |
Return active cell iterator of the processed cell cell
.
Definition at line 288 of file mpi_remote_point_evaluation.cc.
ArrayView< const Point< dim > > Utilities::MPI::RemotePointEvaluation< dim, spacedim >::CellData::get_unit_points | ( | const unsigned int | cell | ) | const |
Return unit points of the processed cell cell
.
Definition at line 299 of file mpi_remote_point_evaluation.cc.
ArrayView< T > Utilities::MPI::RemotePointEvaluation< dim, spacedim >::CellData::get_data_view | ( | const unsigned int | cell, |
const ArrayView< T > & | values | ||
) | const |
Return local view of the processed cell cell
for the vector values
.
Definition at line 695 of file mpi_remote_point_evaluation.h.
std::vector<std::pair<int, int> > Utilities::MPI::RemotePointEvaluation< dim, spacedim >::CellData::cells |
Level and index of processed cells.
Definition at line 251 of file mpi_remote_point_evaluation.h.
std::vector<unsigned int> Utilities::MPI::RemotePointEvaluation< dim, spacedim >::CellData::reference_point_ptrs |
Pointers to the start and end of the (reference) points associated to the cell.
Definition at line 257 of file mpi_remote_point_evaluation.h.
std::vector<Point<dim> > Utilities::MPI::RemotePointEvaluation< dim, spacedim >::CellData::reference_point_values |
Reference points in the interval [0,1]^dim.
Definition at line 262 of file mpi_remote_point_evaluation.h.
|
private |
Reference to the underlying triangulation needed for get_active_cell_iterator().
Definition at line 269 of file mpi_remote_point_evaluation.h.