PRISMS-PF Manual v3.0-pre
All Classes Functions Variables Enumerations Pages
solutionHandler< dim > Class Template Reference

Class that manages solution initialization and swapping with old solutions. More...

#include <solution_handler.h>

Public Types

using VectorType = dealii::LinearAlgebra::distributed::Vector< double >
 

Public Member Functions

 solutionHandler (const std::map< unsigned int, variableAttributes > &_attributes_list)
 Constructor.
 
 ~solutionHandler ()
 Destructor.
 
void init (matrixfreeHandler< dim > &matrix_free_handler)
 Initialize the solution set.
 
void update_ghosts () const
 Update the ghost values.
 
void update (const fieldSolveType &field_solve_type, const unsigned int &variable_index=0)
 Update the solution_set with the new_solution_set. This has different variants on which solutions to swap based on the fieldSolveType.
 

Public Attributes

std::unordered_map< std::pair< unsigned int, dependencyType >, VectorType *, pairHashsolution_set
 The collection of solution vector at the current timestep. This includes current values and old values.
 
std::unordered_map< unsigned int, VectorType * > new_solution_set
 The collection of new solution vectors at the current timestep. This is the dst vector that is filled in the cell_loop. Unlike before, this only include the current values which get updated in the solution_set.
 

Detailed Description

template<int dim>
class solutionHandler< dim >

Class that manages solution initialization and swapping with old solutions.


The documentation for this class was generated from the following files: