/home/runner/work/DiFfRG_current/DiFfRG_current/DiFfRG/include/DiFfRG/discretization/common/solution_view.hh Source File#
|
DiFfRG
Discretization Framework for functional Renormalization Group flows
|
solution_view.hh
Go to the documentation of this file.
125 void reinit(const dealii::IndexSet &locally_owned, const dealii::IndexSet &ghost, MPI_Comm comm)
137 if (ierr != MPI_SUCCESS) throw std::runtime_error("SolutionView::reinit(): MPI_Allgather failed.");
166 throw std::runtime_error("SolutionView::refresh() before reinit(): the gather plan is not known yet.");
182 if (VecGetArrayRead(src_vec, &src) != 0) throw std::runtime_error("SolutionView::refresh(): VecGetArrayRead.");
183 if (VecGetArray(dst_vec, &dst) != 0) throw std::runtime_error("SolutionView::refresh(): VecGetArray.");
185 const int ierr = MPI_Allgatherv(src, local_count, MPI_DOUBLE, dst, counts.data(), displacements.data(),
191 if (ierr != MPI_SUCCESS) throw std::runtime_error("SolutionView::refresh(): MPI_Allgatherv failed.");
196 if (!initialized) throw std::runtime_error("SolutionView::get() before reinit(): the view holds no solution.");
A read-only, fully-replicated view of the solution.
Definition solution_view.hh:48
SolutionView()=default
NumberType operator[](const size_type i) const
Definition solution_view.hh:73
get_type::NumberType< VectorType > NumberType
Definition solution_view.hh:50
void refresh(const VectorType &owned)
Make the view reflect owned.
Definition solution_view.hh:63
dealii::types::global_dof_index size_type
Definition solution_view.hh:51
void reinit(const dealii::IndexSet &, const dealii::IndexSet &, MPI_Comm)
Establish the layout. No-op for the serial policy.
Definition solution_view.hh:58
All compile-time knowledge about which linear algebra types DiFfRG uses.
uint size(MPI_Comm comm)
typename internal::_NumberType< VectorType >::value NumberType
Definition linear_algebra.hh:152
Definition complex_math.hh:10
Generated by