pi-DoMUS: Parallel Deal.II MUltiphysics Solver
copy_data.h
Go to the documentation of this file.
1 
10 #ifndef _pidomus_copy_data_h
11 #define _pidomus_copy_data_h
12 
13 #include <deal.II/fe/fe_values.h>
14 #include <deal2lkit/fe_values_cache.h>
15 
16 using namespace dealii;
17 using namespace deal2lkit;
18 namespace pidomus
19 {
20  struct CopyData
21  {
22  CopyData (const unsigned int &dofs_per_cell,
23  const unsigned int &n_matrices)
24  :
25  local_dof_indices (dofs_per_cell),
26  local_residual (dofs_per_cell),
27  local_matrices (n_matrices,
28  FullMatrix<double>(dofs_per_cell,
29  dofs_per_cell))
30  {};
31 
32  CopyData (const CopyData &data)
33  :
34  local_dof_indices (data.local_dof_indices),
35  local_residual (data.local_residual),
36  local_matrices (data.local_matrices)
37  {};
38 
39  std::vector<types::global_dof_index> local_dof_indices;
40  std::vector<double> local_residual;
41  std::vector<FullMatrix<double> > local_matrices;
42  };
43 
44 }
45 
46 #endif
std::vector< double > local_residual
Definition: copy_data.h:40
CopyData(const CopyData &data)
Definition: copy_data.h:32
CopyData(const unsigned int &dofs_per_cell, const unsigned int &n_matrices)
Definition: copy_data.h:22
Definition: copy_data.h:18
std::vector< FullMatrix< double > > local_matrices
Definition: copy_data.h:41
Definition: copy_data.h:20