Reference documentation for deal.II version Git 3f1f337db3 2021-10-23 13:19:02 -0600
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
solution_transfer.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2009 - 2021 by the deal.II authors
4 //
5 // This file is part of the deal.II library.
6 //
7 // The deal.II library is free software; you can use it, redistribute
8 // it, and/or modify it under the terms of the GNU Lesser General
9 // Public License as published by the Free Software Foundation; either
10 // version 2.1 of the License, or (at your option) any later version.
11 // The full text of the license can be found in the file LICENSE.md at
12 // the top level directory of deal.II.
13 //
14 // ---------------------------------------------------------------------
15 
16 #ifndef dealii_distributed_solution_transfer_h
17 #define dealii_distributed_solution_transfer_h
18 
19 #include <deal.II/base/config.h>
20 
22 
24 
25 #include <vector>
26 
27 
29 
30 namespace parallel
31 {
32  namespace distributed
33  {
224  template <int dim, typename VectorType, int spacedim = dim>
226  {
227  public:
237 
241  ~SolutionTransfer() = default;
242 
250  void
252  const std::vector<const VectorType *> &all_in);
253 
258  void
260 
268  void
269  interpolate(std::vector<VectorType *> &all_out);
270 
280  void
281  interpolate(VectorType &out);
282 
289  void
291 
295  void
296  prepare_for_serialization(const std::vector<const VectorType *> &all_in);
297 
304  void
305  deserialize(VectorType &in);
306 
307 
311  void
312  deserialize(std::vector<VectorType *> &all_in);
313 
314  private:
321 
326  std::vector<const VectorType *> input_vectors;
327 
332  unsigned int handle;
333 
339  std::vector<char>
341  const typename Triangulation<dim, spacedim>::cell_iterator &cell,
342  const typename Triangulation<dim, spacedim>::CellStatus status);
343 
349  void
351  const typename Triangulation<dim, spacedim>::cell_iterator &cell,
352  const typename Triangulation<dim, spacedim>::CellStatus status,
353  const boost::iterator_range<std::vector<char>::const_iterator>
354  & data_range,
355  std::vector<VectorType *> &all_out);
356 
357 
363  void
365  };
366  } // namespace distributed
367 } // namespace parallel
368 
369 namespace Legacy
370 {
371  namespace parallel
372  {
373  namespace distributed
374  {
379  template <int dim,
380  typename VectorType,
381  typename DoFHandlerType = DoFHandler<dim>>
383  ::parallel::distributed::
384  SolutionTransfer<dim, VectorType, DoFHandlerType::space_dimension>;
385  } // namespace distributed
386  } // namespace parallel
387 } // namespace Legacy
388 
389 
391 
392 #endif
void interpolate(std::vector< VectorType *> &all_out)
SolutionTransfer(const DoFHandler< dim, spacedim > &dof)
typename ::Triangulation< dim, spacedim >::CellStatus CellStatus
Definition: tria.h:294
std::vector< char > pack_callback(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const typename Triangulation< dim, spacedim >::CellStatus status)
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:401
SmartPointer< const DoFHandler< dim, spacedim >, SolutionTransfer< dim, VectorType, spacedim > > dof_handler
std::vector< const VectorType * > input_vectors
void prepare_for_serialization(const VectorType &in)
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:400
void prepare_for_coarsening_and_refinement(const std::vector< const VectorType *> &all_in)
void unpack_callback(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const typename Triangulation< dim, spacedim >::CellStatus status, const boost::iterator_range< std::vector< char >::const_iterator > &data_range, std::vector< VectorType *> &all_out)
typename ::Triangulation< dim, spacedim >::cell_iterator cell_iterator
Definition: tria.h:270
#define DEAL_II_DEPRECATED
Definition: config.h:160