Reference documentation for deal.II version 9.6.0
\(\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\}}\)
Loading...
Searching...
No Matches
solution_transfer.h
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4// Copyright (C) 2010 - 2024 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Part of the source code is dual licensed under Apache-2.0 WITH
9// LLVM-exception OR LGPL-2.1-or-later. Detailed license information
10// governing the source code and code contributions can be found in
11// LICENSE.md and CONTRIBUTING.md at the top level directory of deal.II.
12//
13// ------------------------------------------------------------------------
14
15#ifndef dealii_distributed_solution_transfer_h
16#define dealii_distributed_solution_transfer_h
17
18#include <deal.II/base/config.h>
19
21
23
24#include <vector>
25
26
28
29namespace parallel
30{
31 namespace distributed
32 {
222 template <int dim, typename VectorType, int spacedim = dim>
224 {
225 public:
239 const bool average_values = false);
240
244 ~SolutionTransfer() = default;
245
253 void
255 const std::vector<const VectorType *> &all_in);
256
261 void
262 prepare_for_coarsening_and_refinement(const VectorType &in);
263
271 void
272 interpolate(std::vector<VectorType *> &all_out);
273
284 void
285 interpolate(VectorType &out);
286
293 void
294 prepare_for_serialization(const VectorType &in);
295
299 void
300 prepare_for_serialization(const std::vector<const VectorType *> &all_in);
301
308 void
309 deserialize(VectorType &in);
310
311
315 void
316 deserialize(std::vector<VectorType *> &all_in);
317
318 private:
325
329 const bool average_values;
330
335 std::vector<const VectorType *> input_vectors;
336
341 unsigned int handle;
342
348 std::vector<char>
351 const CellStatus status);
352
358 void
361 const CellStatus status,
362 const boost::iterator_range<std::vector<char>::const_iterator>
363 &data_range,
364 std::vector<VectorType *> &all_out,
365 VectorType &valence);
366
367
373 void
375 };
376 } // namespace distributed
377} // namespace parallel
378
379
381
382#endif
CellStatus
Definition cell_status.h:31
std::vector< char > pack_callback(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const CellStatus status)
void unpack_callback(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const CellStatus status, const boost::iterator_range< std::vector< char >::const_iterator > &data_range, std::vector< VectorType * > &all_out, VectorType &valence)
SmartPointer< const DoFHandler< dim, spacedim >, SolutionTransfer< dim, VectorType, spacedim > > dof_handler
std::vector< const VectorType * > input_vectors
void prepare_for_coarsening_and_refinement(const std::vector< const VectorType * > &all_in)
void prepare_for_serialization(const VectorType &in)
void interpolate(std::vector< VectorType * > &all_out)
SolutionTransfer(const DoFHandler< dim, spacedim > &dof_handler, const bool average_values=false)
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:503
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:504
typename ::Triangulation< dim, spacedim >::cell_iterator cell_iterator
Definition tria.h:287