8#include <prismspf/config.h>
18template <
unsigned int dim,
typename number>
31 init(
unsigned int num_fields,
65 [[nodiscard]] std::pair<const SolutionLevel<dim, number> *,
unsigned int>
67 unsigned int relative_level = -1)
const;
72 [[nodiscard]]
unsigned int
78 [[nodiscard]] std::vector<unsigned int>
82 std::vector<GroupSolutionHandler<dim, number> *>
solutions;
86PRISMS_PF_END_NAMESPACE
Class that manages solution initialization and swapping with old solutions.
Definition group_solution_handler.h:56
std::vector< GroupSolutionHandler< dim, number > * > solutions
Definition solution_indexer.h:82
const SolutionVector< number > & get_solution_vector(unsigned int global_index) const
Get a solution vector of a given field index.
Definition solution_indexer.cc:37
unsigned int get_block_index(unsigned int global_index) const
Get the block index of a field within its solve group.
Definition solution_indexer.cc:94
const SolutionVector< number > & get_old_solution_vector(unsigned int age, unsigned int global_index) const
Get a solution vector of a given field index at a given age.
Definition solution_indexer.cc:53
SolutionIndexer()=default
Constructor.
const SolveBlock & get_solve_block(unsigned int index) const
Get the solve group of a given field index.
Definition solution_indexer.cc:71
std::pair< const SolutionLevel< dim, number > *, unsigned int > get_solution_level_and_block_index(unsigned int index, unsigned int relative_level=-1) const
Get the matrixfree object of the group a given field index.
Definition solution_indexer.cc:78
std::vector< unsigned int > block_indices
Definition solution_indexer.h:83
void init(unsigned int num_fields, const std::vector< GroupSolutionHandler< dim, number > * > &solution_handlers)
Initialize the solution indexer.
Definition solution_indexer.cc:17
std::vector< unsigned int > get_block_indices() const
Get the block index of a field within its solve group.
Definition solution_indexer.cc:102
Structure to hold the attributes of a solve-block.
Definition solve_block.h:59
typename BlockVector< number >::BlockType SolutionVector
Typedef for solution vector.
Definition matrix_free_manager.h:38
Definition conditional_ostreams.cc:20