 |
waves
Basic FE playground
|
Go to the documentation of this file. 1 #ifndef KATOPTRON_PRELOADLIST_H
2 #define KATOPTRON_PRELOADLIST_H
10 #include <Tpetra_Map.hpp>
11 #include <Tpetra_Vector.hpp>
12 #include <Teuchos_RCP.hpp>
13 #include <Kokkos_ViewFactory.hpp>
23 template <
typename scalar>
33 PreloadList(
Problem &pbl, Teuchos::RCP<Map> map, Teuchos::RCP<ElementsList> elementsList);
62 template <
typename scalar>
65 int contacts_number = pbl.
Contacts.size();
68 const int ensemble_size = ET::size;
70 contacts_dg = Kokkos::View<scalar *, Kokkos::LayoutRight>(
"R", contacts_number);
71 for (
auto i = 0; i < contacts_number; ++i)
72 for (
int j = 0; j < ensemble_size; ++j)
73 ET::coeff(contacts_dg(i), j) = pbl.
Contacts[i]->dg_vector[j];
77 #endif //KATOPTRON_PRELOADLIST_H
int local_ordinal_type
Definition: Map.h:27
Map::global_ordinal_type global_ordinal_type
Definition: PreloadList.h:27
int global_ordinal_type
Definition: Map.h:28
scalar getPreloadValue(local_ordinal_type i)
Return the value of the preload for a given contact interface.
Definition: PreloadList.h:44
Kokkos::View< scalar *, Kokkos::LayoutRight > contacts_dg
Definition: PreloadList.h:30
Definition: EnsembleTraits.h:8
katoptron namespace
Definition: Algebraic.h:18
Class which is used to specify in Python the thermomechanical to solve.
Definition: wProblem.h:19
std::vector< Contact * > Contacts
Definition: wProblem.h:29
Map::local_ordinal_type local_ordinal_type
Definition: PreloadList.h:26
PreloadList(Problem &pbl, Teuchos::RCP< Map > map, Teuchos::RCP< ElementsList > elementsList)
NeumannList constructor.
Definition: PreloadList.h:63
Class which is used to store the list of the preloads.
Definition: PreloadList.h:24