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_;
Forward declaration of Tpetra::FEMultiVector.
Declaration of the Tpetra::MultiVector class.
One or more distributed dense vectors.
typename Kokkos::Details::InnerProductSpaceTraits< impl_scalar_type >::dot_type dot_type
Type of an inner ("dot") product result.
typename Kokkos::Details::ArithTraits< Scalar >::val_type impl_scalar_type
The type used internally in place of Scalar.
typename map_type::device_type device_type
This class' preferred Kokkos device type.
Map< LocalOrdinal, GlobalOrdinal, Node > map_type
The type of the Map specialization used by this class.
typename device_type::execution_space execution_space
Type of the (new) Kokkos execution space.
typename Kokkos::ArithTraits< impl_scalar_type >::mag_type mag_type
Type of a norm result.
Kokkos::DualView< impl_scalar_type **, Kokkos::LayoutLeft, execution_space > dual_view_type
Kokkos::DualView specialization used by this class.
int local_ordinal_type
Default value of Scalar template parameter.
::Kokkos::Compat::KokkosDeviceWrapperNode< execution_space > node_type
Default value of Node template parameter.
Namespace Tpetra contains the class and methods constituting the Tpetra library.
CombineMode
Rule for combining data in an Import or Export.
@ ADD
Sum new values into existing values.