![]() |
waves
Basic FE playground
|
Class which is used to store all the information related to the discretized problem: More...
#include <DiscreteProblem.h>
Public Member Functions | |
DiscreteProblem (Problem &pbl, size_t _numPrimalDPN, Teuchos::RCP< Teuchos::ParameterList > randomParams, Kokkos::View< scalar *, Kokkos::LayoutLeft > m_rv_values) | |
DiscreteProblem constructor. More... | |
~DiscreteProblem () | |
void | createBlockMatrix (scalar gamma, bool write, bool merge) |
Create the block matrix. More... | |
void | createBlockMVector (bool write) |
Create the block vectors. More... | |
void | computeMatrices (void) |
Compute the primal matrix. More... | |
void | computeContactMatrices (MPI_Comm comm) |
Compute the contacts matrices. More... | |
void | computeLoads (bool scaled=false) |
Compute the rhs. More... | |
Mask< scalar > | updateActivity (int active_set_iteration) |
Update the activity of the Lagrange multipliers and return a Mask which stores true for the converged samples. More... | |
Public Attributes | |
Teuchos::RCP< Domain< scalar > > | domain |
Teuchos::RCP< Loads< scalar > > | loads |
Teuchos::RCP< Algebraic< scalar > > | algebraic |
size_t | numPrimalDPN |
Private Attributes | |
Kokkos::View< scalar *, Kokkos::LayoutRight > | old_old_activity |
Kokkos::View< scalar *, Kokkos::LayoutRight > | old_activity |
Class which is used to store all the information related to the discretized problem:
typedef Tpetra::Export<local_ordinal_type, global_ordinal_type> katoptron::DiscreteProblem< scalar >::export_type |
typedef Map::global_ordinal_type katoptron::DiscreteProblem< scalar >::global_ordinal_type |
typedef Map::local_ordinal_type katoptron::DiscreteProblem< scalar >::local_ordinal_type |
typedef Map::node_type katoptron::DiscreteProblem< scalar >::node_type |
typedef Matrices<scalar>::tpetra_crs_type katoptron::DiscreteProblem< scalar >::tpetra_crs_type |
typedef Map::tpetra_map_type katoptron::DiscreteProblem< scalar >::tpetra_map_type |
typedef Vectors<scalar>::tpetra_mvector_type katoptron::DiscreteProblem< scalar >::tpetra_mvector_type |
typedef Vectors<scalar>::tpetra_vector_type katoptron::DiscreteProblem< scalar >::tpetra_vector_type |
typedef Matrices<scalar>::xpetra_bcrs_type katoptron::DiscreteProblem< scalar >::xpetra_bcrs_type |
typedef Map::xpetra_bmap_type katoptron::DiscreteProblem< scalar >::xpetra_bmap_type |
typedef Vectors<scalar>::xpetra_bmvector_type katoptron::DiscreteProblem< scalar >::xpetra_bmvector_type |
typedef Matrices<scalar>::xpetra_crs_type katoptron::DiscreteProblem< scalar >::xpetra_crs_type |
typedef Map::xpetra_map_type katoptron::DiscreteProblem< scalar >::xpetra_map_type |
typedef Vectors<scalar>::xpetra_mvector_type katoptron::DiscreteProblem< scalar >::xpetra_mvector_type |
typedef Matrices<scalar>::xpetra_tcrs_type katoptron::DiscreteProblem< scalar >::xpetra_tcrs_type |
typedef Map::xpetra_tmap_type katoptron::DiscreteProblem< scalar >::xpetra_tmap_type |
typedef Vectors<scalar>::xpetra_tmvector_type katoptron::DiscreteProblem< scalar >::xpetra_tmvector_type |
typedef Matrices<scalar>::xpetra_wcrs_type katoptron::DiscreteProblem< scalar >::xpetra_wcrs_type |
katoptron::DiscreteProblem< scalar >::DiscreteProblem | ( | Problem & | pbl, |
size_t | _numPrimalDPN, | ||
Teuchos::RCP< Teuchos::ParameterList > | randomParams, | ||
Kokkos::View< scalar *, Kokkos::LayoutLeft > | m_rv_values | ||
) |
DiscreteProblem constructor.
This constructor constructs a katoptron::Map, a katoptron::Domain, a katoptron::Loads, and a katoptron::Algebraic. The last three objects are stored as member data of the katoptron::DiscreteProblem object and include all the information related to the problem to solve. See the documentation of the member data for more information on the purpose of each class.
Arguments:
|
inline |
void katoptron::DiscreteProblem< scalar >::computeContactMatrices | ( | MPI_Comm | comm | ) |
Compute the contacts matrices.
Argument:
void katoptron::DiscreteProblem< scalar >::computeLoads | ( | bool | scaled = false | ) |
Compute the rhs.
Argument:
void katoptron::DiscreteProblem< scalar >::computeMatrices | ( | void | ) |
Compute the primal matrix.
void katoptron::DiscreteProblem< scalar >::createBlockMatrix | ( | scalar | gamma, |
bool | write, | ||
bool | merge | ||
) |
Create the block matrix.
Arguments:
void katoptron::DiscreteProblem< scalar >::createBlockMVector | ( | bool | write | ) |
Create the block vectors.
Argument:
Mask< scalar > katoptron::DiscreteProblem< scalar >::updateActivity | ( | int | active_set_iteration | ) |
Update the activity of the Lagrange multipliers and return a Mask which stores true for the converged samples.
Argument:
Teuchos::RCP<Algebraic<scalar> > katoptron::DiscreteProblem< scalar >::algebraic |
Teuchos::RCP<Domain<scalar> > katoptron::DiscreteProblem< scalar >::domain |
Teuchos::RCP<Loads<scalar> > katoptron::DiscreteProblem< scalar >::loads |
size_t katoptron::DiscreteProblem< scalar >::numPrimalDPN |
|
private |
|
private |