10 #ifndef MUELU_UTILITIES_DEF_HPP
11 #define MUELU_UTILITIES_DEF_HPP
13 #include <Teuchos_DefaultComm.hpp>
20 #ifdef HAVE_MUELU_EPETRA
22 #include "Epetra_MpiComm.h"
26 #if defined(HAVE_MUELU_EPETRA) && defined(HAVE_MUELU_EPETRAEXT)
39 #include <Tpetra_RowMatrixTransposer.hpp>
40 #include <TpetraExt_MatrixMatrix.hpp>
41 #include <Xpetra_TpetraMultiVector.hpp>
43 #include <Xpetra_TpetraCrsMatrix.hpp>
44 #include <Xpetra_TpetraBlockCrsMatrix.hpp>
46 #ifdef HAVE_MUELU_EPETRA
53 #include <Xpetra_Map.hpp>
54 #include <Xpetra_MapFactory.hpp>
58 #include <Xpetra_MultiVectorFactory.hpp>
66 #if defined(HAVE_MUELU_EPETRA) && defined(HAVE_MUELU_ML)
67 #include <ml_operator.h>
68 #include <ml_epetra_utils.h>
73 #ifdef HAVE_MUELU_EPETRA
78 #ifdef HAVE_MUELU_EPETRA
79 template <
typename SC,
typename LO,
typename GO,
typename NO>
81 return Xpetra::Convert_Epetra_CrsMatrix_ToXpetra_CrsMatrixWrap<SC, LO, GO, NO>(epAB);
85 #ifdef HAVE_MUELU_EPETRA
86 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
89 if (tmpVec == Teuchos::null)
90 throw Exceptions::BadCast(
"Cast from Xpetra::MultiVector to Xpetra::EpetraMultiVector failed");
91 return tmpVec->getEpetra_MultiVector();
94 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
97 if (tmpVec == Teuchos::null)
98 throw Exceptions::BadCast(
"Cast from Xpetra::MultiVector to Xpetra::EpetraMultiVector failed");
99 return tmpVec->getEpetra_MultiVector();
102 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
108 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
114 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
117 if (crsOp == Teuchos::null)
120 if (tmp_ECrsMtx == Teuchos::null)
121 throw Exceptions::BadCast(
"Cast from Xpetra::CrsMatrix to Xpetra::EpetraCrsMatrix failed");
122 return tmp_ECrsMtx->getEpetra_CrsMatrix();
125 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
128 if (crsOp == Teuchos::null)
131 if (tmp_ECrsMtx == Teuchos::null)
132 throw Exceptions::BadCast(
"Cast from Xpetra::CrsMatrix to Xpetra::EpetraCrsMatrix failed");
133 return tmp_ECrsMtx->getEpetra_CrsMatrixNonConst();
136 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
143 }
catch (std::bad_cast&) {
144 throw Exceptions::BadCast(
"Cast from Xpetra::CrsMatrix to Xpetra::EpetraCrsMatrix failed");
146 }
catch (std::bad_cast&) {
151 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
158 }
catch (std::bad_cast&) {
159 throw Exceptions::BadCast(
"Cast from Xpetra::CrsMatrix to Xpetra::EpetraCrsMatrix failed");
161 }
catch (std::bad_cast&) {
166 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
169 if (xeMap == Teuchos::null)
170 throw Exceptions::BadCast(
"Utilities::Map2EpetraMap : Cast from Xpetra::Map to Xpetra::EpetraMap failed");
171 return xeMap->getEpetra_Map();
175 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
179 if (tmpVec == Teuchos::null)
180 throw Exceptions::BadCast(
"Cast from Xpetra::MultiVector to Xpetra::TpetraMultiVector failed");
181 return tmpVec->getTpetra_MultiVector();
184 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
187 if (tmpVec == Teuchos::null)
188 throw Exceptions::BadCast(
"Cast from Xpetra::MultiVector to Xpetra::TpetraMultiVector failed");
189 return tmpVec->getTpetra_MultiVector();
192 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
198 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
204 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
211 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
215 if (crsOp == Teuchos::null)
218 if (tmp_ECrsMtx == Teuchos::null)
219 throw Exceptions::BadCast(
"Cast from Xpetra::CrsMatrix to Xpetra::TpetraCrsMatrix failed");
220 return tmp_ECrsMtx->getTpetra_CrsMatrix();
223 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
226 if (crsOp == Teuchos::null)
229 if (tmp_ECrsMtx == Teuchos::null)
230 throw Exceptions::BadCast(
"Cast from Xpetra::CrsMatrix to Xpetra::TpetraCrsMatrix failed");
231 return tmp_ECrsMtx->getTpetra_CrsMatrixNonConst();
234 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
241 }
catch (std::bad_cast&) {
242 throw Exceptions::BadCast(
"Cast from Xpetra::CrsMatrix to Xpetra::TpetraCrsMatrix failed");
244 }
catch (std::bad_cast&) {
249 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
256 }
catch (std::bad_cast&) {
257 throw Exceptions::BadCast(
"Cast from Xpetra::CrsMatrix to Xpetra::TpetraCrsMatrix failed");
259 }
catch (std::bad_cast&) {
264 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
269 if (crsOp == Teuchos::null)
272 if (tmp_ECrsMtx == Teuchos::null)
273 throw Exceptions::BadCast(
"Cast from Xpetra::CrsMatrix to Xpetra::TpetraBlockCrsMatrix failed");
274 return tmp_ECrsMtx->getTpetra_BlockCrsMatrix();
277 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
281 if (crsOp == Teuchos::null)
284 if (tmp_ECrsMtx == Teuchos::null)
285 throw Exceptions::BadCast(
"Cast from Xpetra::CrsMatrix to Xpetra::TpetraBlockCrsMatrix failed");
286 return tmp_ECrsMtx->getTpetra_BlockCrsMatrixNonConst();
289 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
293 const XCrsMatrixWrap& crsOp =
dynamic_cast<const XCrsMatrixWrap&
>(Op);
297 }
catch (std::bad_cast&) {
298 throw Exceptions::BadCast(
"Cast from Xpetra::CrsMatrix to Xpetra::TpetraBlockCrsMatrix failed");
300 }
catch (std::bad_cast&) {
305 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
309 XCrsMatrixWrap& crsOp =
dynamic_cast<XCrsMatrixWrap&
>(Op);
313 }
catch (std::bad_cast&) {
314 throw Exceptions::BadCast(
"Cast from Xpetra::CrsMatrix to Xpetra::TpetraBlockCrsMatrix failed");
316 }
catch (std::bad_cast&) {
321 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
327 if (crsOp == Teuchos::null)
334 return tmp_Crs->getTpetra_CrsMatrixNonConst();
337 if (tmp_BlockCrs.is_null())
338 throw Exceptions::BadCast(
"Cast from Xpetra::CrsMatrix to Xpetra::TpetraCrsMatrix and Xpetra::TpetraBlockCrsMatrix failed");
339 return tmp_BlockCrs->getTpetra_BlockCrsMatrixNonConst();
341 }
else if (!rmat.is_null()) {
342 return rmat->getTpetra_RowMatrix();
351 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
357 if (crsOp == Teuchos::null)
364 return tmp_Crs->getTpetra_CrsMatrixNonConst();
367 if (tmp_BlockCrs.is_null())
368 throw Exceptions::BadCast(
"Cast from Xpetra::CrsMatrix to Xpetra::TpetraCrsMatrix and Xpetra::TpetraBlockCrsMatrix failed");
369 return tmp_BlockCrs->getTpetra_BlockCrsMatrixNonConst();
371 }
else if (!rmat.is_null()) {
372 return rmat->getTpetra_RowMatrixNonConst();
381 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
384 if (tmp_TMap == Teuchos::null)
385 throw Exceptions::BadCast(
"Utilities::Map2TpetraMap : Cast from Xpetra::Map to Xpetra::TpetraMap failed");
386 return tmp_TMap->getTpetra_Map();
389 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
392 bool doOptimizeStorage) {
396 for (
int i = 0; i < scalingVector.
size(); ++i)
397 sv[i] = one / scalingVector[i];
399 for (
int i = 0; i < scalingVector.
size(); ++i)
400 sv[i] = scalingVector[i];
403 switch (Op.getRowMap()->lib()) {
405 MyOldScaleMatrix_Tpetra(Op, sv, doFillComplete, doOptimizeStorage);
409 MyOldScaleMatrix_Epetra(Op, sv, doFillComplete, doOptimizeStorage);
417 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
422 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
425 bool doOptimizeStorage) {
434 if (maxRowSize == Teuchos::as<size_t>(-1))
444 for (
size_t i = 0; i < rowMap->getLocalNumElements(); ++i) {
450 for (
size_t j = 0; j < nnz; ++j) {
451 scaledVals[j] = scalingVector[i] * vals[j];
463 for (
size_t i = 0; i < rowMap->getLocalNumElements(); ++i) {
470 for (
size_t j = 0; j < nnz; ++j)
471 scaledVals[j] = scalingVector[i] * vals[j];
479 if (doFillComplete) {
480 if (domainMap == Teuchos::null || rangeMap == Teuchos::null)
481 throw Exceptions::RuntimeError(
"In Utilities::Scaling: cannot fillComplete because the domain and/or range map hasn't been defined");
484 params->
set(
"Optimize Storage", doOptimizeStorage);
485 params->
set(
"No Nonlocal Changes",
true);
493 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
497 #if defined(HAVE_MUELU_EPETRA) && defined(HAVE_MUELU_EPETRAEXT)
498 std::string TorE =
"epetra";
500 std::string TorE =
"tpetra";
503 #if defined(HAVE_MUELU_EPETRA) && defined(HAVE_MUELU_EPETRAEXT)
512 if (TorE ==
"tpetra") {
515 if (Helpers::isTpetraCrs(Op)) {
525 transposeParams->
set(
"sort",
false);
532 if (!AAAA->isFillComplete())
535 if (Op.IsView(
"stridedMaps"))
536 AAAA->CreateView(
"stridedMaps", Teuchos::rcpFromRef(Op),
true );
539 }
else if (Helpers::isTpetraBlockCrs(Op)) {
554 transposeParams->
set(
"sort",
false);
562 if (Op.IsView(
"stridedMaps"))
563 AAAA->CreateView(
"stridedMaps", Teuchos::rcpFromRef(Op),
true );
572 std::cout <<
"Utilities::Transpose() not implemented for Epetra" << std::endl;
573 return Teuchos::null;
577 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
582 #if defined(HAVE_XPETRA_TPETRA) && (defined(HAVE_TPETRA_INST_COMPLEX_DOUBLE) || defined(HAVE_TPETRA_INST_COMPLEX_FLOAT))
583 using range_type = Kokkos::RangePolicy<LocalOrdinal, typename Node::execution_space>;
586 if ((
typeid(
Scalar).name() ==
typeid(std::complex<double>).name()) ||
587 (
typeid(
Scalar).name() ==
typeid(std::complex<float>).name())) {
588 size_t numVecs = X->getNumVectors();
590 auto XVec = X->getDeviceLocalView(Xpetra::Access::ReadOnly);
591 auto XVecScalar = Xscalar->getDeviceLocalView(Xpetra::Access::ReadWrite);
593 Kokkos::parallel_for(
594 "MueLu:Utils::RealValuedToScalarMultiVector", range_type(0, X->getLocalLength()),
595 KOKKOS_LAMBDA(
const size_t i) {
596 for (
size_t j = 0; j < numVecs; j++)
597 XVecScalar(i, j) = XVec(i, j);
605 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
618 #if !defined(HAVE_TPETRA_EXPLICIT_INSTANTIATION) || defined(HAVE_TPETRA_INST_FLOAT)
626 #if !defined(HAVE_TPETRA_EXPLICIT_INSTANTIATION) || defined(HAVE_TPETRA_INST_DOUBLE)
632 paramList.
remove(
"Coordinates");
634 #if !defined(HAVE_TPETRA_EXPLICIT_INSTANTIATION) || defined(HAVE_TPETRA_INST_FLOAT)
638 paramList.
remove(
"Coordinates");
639 doubleCoords =
rcp(
new tdMV(floatCoords->getMap(), floatCoords->getNumVectors()));
644 if (doubleCoords != Teuchos::null) {
653 throw Exceptions::RuntimeError(
"ExtractCoordinatesFromParameterList: The coordinates vector in parameter list is expected to be a Tpetra multivector with SC=double or float.");
657 if (paramList.
isType<decltype(coordinates)>(
"Coordinates")) {
658 coordinates = paramList.
get<decltype(coordinates)>(
"Coordinates");
666 #define MUELU_UTILITIES_SHORT
667 #endif // MUELU_UTILITIES_DEF_HPP
RCP< CrsMatrix > getCrsMatrix() const
Exception indicating invalid cast attempted.
static const RCP< const Tpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > Map2TpetraMap(const Xpetra::Map< LocalOrdinal, GlobalOrdinal, Node > &map)
MueLu::DefaultLocalOrdinal LocalOrdinal
static RCP< const Tpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > MV2TpetraMV(RCP< Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >> const vec)
Helper utility to pull out the underlying Tpetra objects from an Xpetra object.
static void MyOldScaleMatrix(Xpetra::Matrix< Scalar, LocalOrdinal, GlobalOrdinal, Node > &Op, const Teuchos::ArrayRCP< const Scalar > &scalingVector, bool doInverse=true, bool doFillComplete=true, bool doOptimizeStorage=true)
static Teuchos::RCP< MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > Build(const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node >> &map, size_t NumVectors, bool zeroOut=true)
static RCP< Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > RealValuedToScalarMultiVector(RCP< Xpetra::MultiVector< typename Teuchos::ScalarTraits< Scalar >::coordinateType, LocalOrdinal, GlobalOrdinal, Node >> X)
static const Epetra_Map & Map2EpetraMap(const Xpetra::Map< LocalOrdinal, GlobalOrdinal, Node > &map)
Teuchos::RCP< const map_type > getRangeMap() const override
RCP< Tpetra::BlockCrsMatrix< Scalar, LocalOrdinal, GlobalOrdinal, Node > > getTpetra_BlockCrsMatrixNonConst() const
T & get(const std::string &name, T def_value)
RCP< Epetra_CrsMatrix > getEpetra_CrsMatrixNonConst() const
static RCP< Xpetra::MultiVector< typename Teuchos::ScalarTraits< Scalar >::magnitudeType, LocalOrdinal, GlobalOrdinal, Node > > ExtractCoordinatesFromParameterList(ParameterList ¶mList)
static RCP< Tpetra::RowMatrix< Scalar, LocalOrdinal, GlobalOrdinal, Node > > Op2NonConstTpetraRow(RCP< Xpetra::Operator< Scalar, LocalOrdinal, GlobalOrdinal, Node >> Op)
bool is_null(const std::shared_ptr< T > &p)
static RCP< Epetra_CrsMatrix > Op2NonConstEpetraCrs(RCP< Xpetra::Matrix< Scalar, LocalOrdinal, GlobalOrdinal, Node >> Op)
void resumeFill(const Teuchos::RCP< Teuchos::ParameterList > ¶ms=Teuchos::null)
ParameterList & set(std::string const &name, T &&value, std::string const &docString="", RCP< const ParameterEntryValidator > const &validator=null)
static RCP< const Tpetra::CrsMatrix< Scalar, LocalOrdinal, GlobalOrdinal, Node > > Op2TpetraCrs(RCP< const Xpetra::Matrix< Scalar, LocalOrdinal, GlobalOrdinal, Node >> Op)
static RCP< Tpetra::BlockCrsMatrix< Scalar, LocalOrdinal, GlobalOrdinal, Node > > Op2NonConstTpetraBlockCrs(RCP< Xpetra::Matrix< Scalar, LocalOrdinal, GlobalOrdinal, Node >> Op)
bool isParameter(const std::string &name) const
void deep_copy(MultiVector< DS, DL, DG, DN > &dst, const MultiVector< SS, SL, SG, SN > &src)
bool remove(std::string const &name, bool throwIfNotExists=true)
virtual void fillComplete(const RCP< const Map > &domainMap, const RCP< const Map > &rangeMap, const RCP< ParameterList > ¶ms=null)=0
size_t getLocalMaxNumRowEntries() const override
bool isFillComplete() const override
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
static RCP< Epetra_MultiVector > MV2NonConstEpetraMV(RCP< Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >> vec)
MueLu::DefaultScalar Scalar
MueLu::DefaultGlobalOrdinal GlobalOrdinal
RCP< const Tpetra::BlockCrsMatrix< Scalar, LocalOrdinal, GlobalOrdinal, Node > > getTpetra_BlockCrsMatrix() const
static RCP< Tpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > MV2NonConstTpetraMV2(Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &vec)
static RCP< Xpetra::Matrix< Scalar, LocalOrdinal, GlobalOrdinal, Node > > Transpose(Xpetra::Matrix< Scalar, LocalOrdinal, GlobalOrdinal, Node > &Op, bool optimizeTranspose=false, const std::string &label=std::string(), const Teuchos::RCP< Teuchos::ParameterList > ¶ms=Teuchos::null)
RCP< const Epetra_CrsMatrix > getEpetra_CrsMatrix() const
local_ordinal_type replaceGlobalValues(const global_ordinal_type globalRow, const Kokkos::View< const global_ordinal_type *, Kokkos::AnonymousSpace > &inputInds, const Kokkos::View< const impl_scalar_type *, Kokkos::AnonymousSpace > &inputVals)
RCP< Xpetra::CrsMatrixWrap< SC, LO, GO, NO > > Convert_Epetra_CrsMatrix_ToXpetra_CrsMatrixWrap(RCP< Epetra_CrsMatrix > &epAB)
size_t getNumEntriesInLocalRow(local_ordinal_type localRow) const override
Teuchos::RCP< bcrs_matrix_type > createTranspose(const Teuchos::RCP< Teuchos::ParameterList > ¶ms=Teuchos::null)
Teuchos::RCP< crs_matrix_type > createTranspose(const Teuchos::RCP< Teuchos::ParameterList > ¶ms=Teuchos::null)
static void MyOldScaleMatrix_Epetra(Xpetra::Matrix< Scalar, LocalOrdinal, GlobalOrdinal, Node > &Op, const Teuchos::ArrayRCP< Scalar > &scalingVector, bool doFillComplete, bool doOptimizeStorage)
Teuchos::RCP< const map_type > getDomainMap() const override
virtual bool isLocallyIndexed() const =0
RCP< const Tpetra::CrsMatrix< Scalar, LocalOrdinal, GlobalOrdinal, Node > > getTpetra_CrsMatrix() const
RCP< Tpetra::CrsMatrix< Scalar, LocalOrdinal, GlobalOrdinal, Node > > getTpetra_CrsMatrixNonConst() const
bool isType(const std::string &name) const
static RCP< const Tpetra::RowMatrix< Scalar, LocalOrdinal, GlobalOrdinal, Node > > Op2TpetraRow(RCP< const Xpetra::Operator< Scalar, LocalOrdinal, GlobalOrdinal, Node >> Op)
virtual void getGlobalRowView(GlobalOrdinal GlobalRow, global_inds_host_view_type &indices, values_host_view_type &values) const =0
static RCP< const Epetra_MultiVector > MV2EpetraMV(RCP< Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >> const vec)
Helper utility to pull out the underlying Epetra objects from an Xpetra object.
RCP< Epetra_MultiVector > getEpetra_MultiVector() const
virtual Teuchos::RCP< const Map > getRangeMap() const =0
RCP< Tpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > getTpetra_MultiVector() const
size_t getNumEntriesInGlobalRow(GlobalOrdinal globalRow) const override
Exception throws to report errors in the internal logical of the program.
virtual void getLocalRowView(LocalOrdinal LocalRow, local_inds_host_view_type &indices, values_host_view_type &values) const =0
local_ordinal_type replaceLocalValues(const local_ordinal_type localRow, const Kokkos::View< const local_ordinal_type *, Kokkos::AnonymousSpace > &inputInds, const Kokkos::View< const impl_scalar_type *, Kokkos::AnonymousSpace > &inputVals)
static RCP< const Tpetra::BlockCrsMatrix< Scalar, LocalOrdinal, GlobalOrdinal, Node > > Op2TpetraBlockCrs(RCP< const Xpetra::Matrix< Scalar, LocalOrdinal, GlobalOrdinal, Node >> Op)
static void MyOldScaleMatrix_Tpetra(Xpetra::Matrix< Scalar, LocalOrdinal, GlobalOrdinal, Node > &Op, const Teuchos::ArrayRCP< Scalar > &scalingVector, bool doFillComplete, bool doOptimizeStorage)
static RCP< const Epetra_CrsMatrix > Op2EpetraCrs(RCP< const Xpetra::Matrix< Scalar, LocalOrdinal, GlobalOrdinal, Node >> Op)
#define TEUCHOS_TEST_FOR_EXCEPT(throw_exception_test)
static RCP< Tpetra::CrsMatrix< Scalar, LocalOrdinal, GlobalOrdinal, Node > > Op2NonConstTpetraCrs(RCP< Xpetra::Matrix< Scalar, LocalOrdinal, GlobalOrdinal, Node >> Op)
virtual Teuchos::RCP< const Map > getDomainMap() const =0
static RCP< Tpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > MV2NonConstTpetraMV(RCP< Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >> vec)
Teuchos::RCP< const map_type > getRowMap() const override