![]() |
deal.II version GIT relicensing-6842-g793a97d2aa 2026-10-02 14:00:01+00:00
|
#include <deal.II/base/mpi_remote_point_evaluation.h>
Helper class to store and to access data of points positioned in processed cells.
Definition at line 216 of file 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 DataType > | |
| ArrayView< DataType > | get_data_view (const unsigned int cell, const ArrayView< DataType > &values, const unsigned int n_components=1) 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 |
| Utilities::MPI::RemotePointEvaluation< dim, spacedim >::CellData::CellData | ( | const Triangulation< dim, spacedim > & | triangulation | ) |
Constructor.
| triangulation | Triangulation of the domain. |
Definition at line 268 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 277 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 287 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 298 of file mpi_remote_point_evaluation.cc.
| ArrayView< DataType > Utilities::MPI::RemotePointEvaluation< dim, spacedim >::CellData::get_data_view | ( | const unsigned int | cell, |
| const ArrayView< DataType > & | values, | ||
| const unsigned int | n_components = 1 |
||
| ) | const |
Return local view of the processed cell cell for the vector values.
The number of components n_components needs to match the template argument of the same name supplied to process_and_evaluate().
For more than one component, the returned ArrayView has one entry for each component for each data point and all components for each point are stored consecutively.
Definition at line 738 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 285 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 291 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 296 of file mpi_remote_point_evaluation.h.
|
private |
Reference to the underlying triangulation needed for get_active_cell_iterator().
Definition at line 303 of file mpi_remote_point_evaluation.h.