You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@mhoemmen That's weird, note that I put in TEUCHOS_UNREACHABLE_RETURN, presumably b/c nvcc was complaining that the return on 160 wasn't reachable. What's the compiler version?
147 #ifdef HAVE_XPETRA_TPETRA
148 // Underlying matrix is Tpetra
149 RCP<const TpetraCrsMatrix> oldTCrsOp = Teuchos::rcp_dynamic_cast<const TpetraCrsMatrix>(oldCrsOp);
150 if (oldTCrsOp != Teuchos::null) {
151 RCP<CrsMatrix> newTCrsOp(new TpetraCrsMatrix(*oldTCrsOp));
152 RCP<CrsMatrixWrap> newOp (new CrsMatrixWrap(newTCrsOp));
153 newOp->SetFixedBlockSize(A->GetFixedBlockSize());
154 return newOp;
155 }
156 #else
157 throw Exceptions::BadCast("Cast from Xpetra::Matrix to Xpetra::EpetraCrsMatrix or Xpetra::TpetraCrsMatrix failed");
158 #endif
159
160 TEUCHOS_UNREACHABLE_RETURN(Teuchos::null); // make compiler happy
161 }
162 };
@trilinos/muelu @trilinos/xpetra
The text was updated successfully, but these errors were encountered: