OGS
CoupledSolutionsForStaggeredScheme.h
Go to the documentation of this file.
1 
13 #pragma once
14 
15 #include <utility>
16 #include <vector>
17 
19 
20 namespace ProcessLib
21 {
31 {
33  std::vector<GlobalVector*> const& coupled_xs_);
34 
36  std::vector<GlobalVector*> const& coupled_xs;
37 
39  std::vector<GlobalVector*> coupled_xs_t0;
40 };
41 
51 {
52  explicit LocalCoupledSolutions(std::vector<double>&& local_coupled_xs0_)
53  : local_coupled_xs0(std::move(local_coupled_xs0_))
54  {
55  }
56 
58  std::vector<double> const local_coupled_xs0;
59 };
60 
65 std::vector<double> getCoupledLocalSolutions(
66  std::vector<GlobalVector*> const& global_solutions,
67  std::vector<std::vector<GlobalIndexType>> const& indices);
68 
69 } // namespace ProcessLib
std::vector< double > getCoupledLocalSolutions(std::vector< GlobalVector * > const &global_solutions, std::vector< std::vector< GlobalIndexType >> const &indices)
std::vector< GlobalVector * > const & coupled_xs
References to the current solutions of the coupled processes.
std::vector< GlobalVector * > coupled_xs_t0
Pointers to the vector of the solutions of the previous time step.
CoupledSolutionsForStaggeredScheme(std::vector< GlobalVector * > const &coupled_xs_)
std::vector< double > const local_coupled_xs0
Local solutions of the previous time step.
LocalCoupledSolutions(std::vector< double > &&local_coupled_xs0_)