51 #if defined(HAVE_XPETRA_EPETRA) && !defined(XPETRA_EPETRA_NO_32BIT_GLOBAL_INDICES)
58 bool call_FillComplete_on_result,
59 bool doOptimizeStorage,
60 const std::string & label,
61 const Teuchos::RCP<Teuchos::ParameterList>& params) {
68 "XpetraExt::MatrixMatrix::Jacobi: row map of C is not same as row map of A")
70 "XpetraExt::MatrixMatrix::Jacobi: row map of C is not same as row map of B");
74 bool haveMultiplyDoFillComplete = call_FillComplete_on_result && doOptimizeStorage;
77 #ifndef HAVE_XPETRA_EPETRAEXT
87 if (haveMultiplyDoFillComplete) {
98 std::ostringstream buf;
100 std::string msg =
"EpetraExt::MatrixMatrix::Jacobi return value of " + buf.str();
105 #ifdef HAVE_XPETRA_TPETRA
106 # if ((defined(EPETRA_HAVE_OMP) && (!defined(HAVE_TPETRA_INST_OPENMP) || !defined(HAVE_TPETRA_INST_INT_INT))) || \
107 (!defined(EPETRA_HAVE_OMP) && (!defined(HAVE_TPETRA_INST_SERIAL) || !defined(HAVE_TPETRA_INST_INT_INT))))
113 const RCP<Tpetra::Vector<SC,LO,GO,NO> > & tpD =
toTpetra(Dinv);
121 if (call_FillComplete_on_result && !haveMultiplyDoFillComplete) {
122 RCP<Teuchos::ParameterList> ppp = rcp(
new Teuchos::ParameterList());
123 ppp->set(
"Optimize Storage", doOptimizeStorage);
130 C.
CreateView(
"stridedMaps", rcpA,
false, rcpB,
false);
134 #if defined(HAVE_XPETRA_EPETRA) && !defined(XPETRA_EPETRA_NO_64BIT_GLOBAL_INDICES)
141 bool call_FillComplete_on_result,
142 bool doOptimizeStorage,
143 const std::string & label,
144 const Teuchos::RCP<Teuchos::ParameterList>& params) {
147 typedef long long GO;
151 "XpetraExt::MatrixMatrix::Jacobi: row map of C is not same as row map of A")
153 "XpetraExt::MatrixMatrix::Jacobi: row map of C is not same as row map of B");
157 bool haveMultiplyDoFillComplete = call_FillComplete_on_result && doOptimizeStorage;
160 #ifndef HAVE_XPETRA_EPETRAEXT
170 if (haveMultiplyDoFillComplete) {
181 std::ostringstream buf;
183 std::string msg =
"EpetraExt::MatrixMatrix::Jacobi return value of " + buf.str();
188 #ifdef HAVE_XPETRA_TPETRA
189 # if ((defined(EPETRA_HAVE_OMP) && (!defined(HAVE_TPETRA_INST_OPENMP) || !defined(HAVE_TPETRA_INST_INT_LONG_LONG))) || \
190 (!defined(EPETRA_HAVE_OMP) && (!defined(HAVE_TPETRA_INST_SERIAL) || !defined(HAVE_TPETRA_INST_INT_LONG_LONG))))
196 const RCP<Tpetra::Vector<SC,LO,GO,NO> > & tpD =
toTpetra(Dinv);
204 if (call_FillComplete_on_result && !haveMultiplyDoFillComplete) {
205 RCP<Teuchos::ParameterList> ppp = rcp(
new Teuchos::ParameterList());
206 ppp->set(
"Optimize Storage", doOptimizeStorage);
213 C.
CreateView(
"stridedMaps", rcpA,
false, rcpB,
false);