14 #include "Epetra_Map.h"
15 #include "Epetra_MultiVector.h"
17 #include "Epetra_Comm.h"
18 #include "Epetra_SerialComm.h"
21 # include "Epetra_MpiComm.h"
24 #include "BelosConfigDefs.hpp"
25 #include "BelosMVOPTester.hpp"
26 #include "BelosEpetraAdapter.hpp"
28 #ifdef HAVE_EPETRA_THYRA
32 #endif // HAVE_EPETRA_THYRA
35 main (
int argc,
char *argv[])
39 using Teuchos::rcp_implicit_cast;
44 MPI_Init (&argc, &argv);
45 Epetra_MpiComm comm (MPI_COMM_WORLD);
48 Epetra_SerialComm comm;
50 const int myRank = comm.MyPID ();
53 const int globalNumRows = 100;
54 const int blockSize = 3;
55 const int indexBase = 0;
57 RCP<const Epetra_Map> range_epetra (
new Epetra_Map (globalNumRows, indexBase, comm));
58 RCP<Epetra_MultiVector> X_epetra (
new Epetra_MultiVector (*range_epetra, blockSize));
65 #ifdef HAVE_EPETRA_THYRA
67 RCP<const Thyra::VectorSpaceBase<double> > range_thyra =
70 RCP<Thyra::MultiVectorBase<double> > X_thyra =
78 #endif // HAVE_EPETRA_THYRA
86 std::cout <<
"End Result: TEST PASSED" << std::endl;
92 std::cout <<
"End Result: TEST FAILED" << std::endl;
int main(int argc, char *argv[])
RCP< const VectorSpaceBase< double > > create_VectorSpace(const RCP< const Epetra_Map > &epetra_map)
Stub adaptor from Thyra::MultiVectorBase to TSQR.
RCP< MultiVectorBase< double > > create_MultiVector(const RCP< Epetra_MultiVector > &epetra_mv, const RCP< const VectorSpaceBase< double > > &range=Teuchos::null, const RCP< const VectorSpaceBase< double > > &domain=Teuchos::null)
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)