42 #ifndef TPETRA_FEMULTIVECTOR_DECL_HPP
43 #define TPETRA_FEMULTIVECTOR_DECL_HPP
59 template <
class Scalar,
64 public MultiVector<Scalar, LocalOrdinal, GlobalOrdinal, Node>
75 using scalar_type = Scalar;
79 using global_ordinal_type = GlobalOrdinal;
110 FEMultiVector () =
delete;
134 FEMultiVector (
const Teuchos::RCP<const map_type>& map,
135 const Teuchos::RCP<
const Import<local_ordinal_type, global_ordinal_type, node_type>>& importer,
136 const size_t numVecs,
137 const bool zeroOut =
true);
140 FEMultiVector (
const FEMultiVector<Scalar, LocalOrdinal, GlobalOrdinal, Node>&) =
delete;
143 FEMultiVector (FEMultiVector<Scalar, LocalOrdinal, GlobalOrdinal, Node>&&) =
delete;
147 operator= (
const FEMultiVector<Scalar, LocalOrdinal, GlobalOrdinal, Node>&) =
delete;
151 operator= (FEMultiVector<Scalar, LocalOrdinal, GlobalOrdinal, Node>&&) =
delete;
162 virtual ~FEMultiVector () =
default;
176 void globalAssemble ();
192 void switchActiveMultiVector();
199 void replaceMap (
const Teuchos::RCP<const map_type>& map);
204 FE_ACTIVE_OWNED_PLUS_SHARED,
209 Teuchos::RCP<base_type> inactiveMultiVector_;
216 Teuchos::RCP<FEWhichActive> activeMultiVector_;
219 Teuchos::RCP<const Import<local_ordinal_type, global_ordinal_type, node_type>> importer_;
224 #endif // TPETRA_FEMULTIVECTOR_DECL_HPP
typename device_type::execution_space execution_space
Type of the (new) Kokkos execution space.
Kokkos::DualView< impl_scalar_type **, Kokkos::LayoutLeft, execution_space > dual_view_type
Kokkos::DualView specialization used by this class.
void replaceMap(const Teuchos::RCP< const map_type > &map)
Replace the underlying Map in place.
One or more distributed dense vectors.
int local_ordinal_type
Default value of Scalar template parameter.
Declaration of the Tpetra::MultiVector class.
typename Kokkos::Details::InnerProductSpaceTraits< impl_scalar_type >::dot_type dot_type
Type of an inner ("dot") product result.
CombineMode
Rule for combining data in an Import or Export.
Sum new values into existing values.
typename Kokkos::ArithTraits< impl_scalar_type >::mag_type mag_type
Type of a norm result.
::Kokkos::Compat::KokkosDeviceWrapperNode< execution_space > node_type
Default value of Node template parameter.
Forward declaration of Tpetra::FEMultiVector.
typename map_type::device_type device_type
This class' preferred Kokkos device type.
typename Kokkos::Details::ArithTraits< Scalar >::val_type impl_scalar_type
The type used internally in place of Scalar.
Map< LocalOrdinal, GlobalOrdinal, Node > map_type
The type of the Map specialization used by this class.