Skip to content

Commit

Permalink
Merge pull request #15150 from luca-heltai/RPE_get_cell_data
Browse files Browse the repository at this point in the history
Add getter for cell_data in RPE
  • Loading branch information
peterrum committed Apr 28, 2023
2 parents a040d87 + ea2b638 commit 9f5b0c1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/deal.II/base/mpi_remote_point_evaluation.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ namespace Utilities
std::vector<Point<dim>> reference_point_values;
};

/**
* Return internal data structure storing the data of points
* positioned in cells.
*/
const CellData &
get_cell_data() const;

/**
* Evaluate function @p evaluation_function in the given points and
* triangulation. The result is stored in @p output.
Expand Down
10 changes: 10 additions & 0 deletions source/base/mpi_remote_point_evaluation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,16 @@ namespace Utilities
}



template <int dim, int spacedim>
const typename RemotePointEvaluation<dim, spacedim>::CellData &
RemotePointEvaluation<dim, spacedim>::get_cell_data() const
{
return cell_data;
}



template <int dim, int spacedim>
const std::vector<unsigned int> &
RemotePointEvaluation<dim, spacedim>::get_point_ptrs() const
Expand Down

0 comments on commit 9f5b0c1

Please sign in to comment.