45 #include <lifev/core/LifeV.hpp> 53 using namespace LifeV;
58 int main (
int argc,
char* argv[])
62 MPI_Init (&argc, &argv);
63 std::shared_ptr<Epetra_Comm> Comm (
new Epetra_MpiComm (MPI_COMM_WORLD) );
65 std::shared_ptr<Epetra_Comm> Comm (
new Epetra_SerialComm);
67 bool verbose (Comm->MyPID() == 0);
70 const LifeV::Real knownMatrixError ( 4.55 );
71 const LifeV::Real knownRhsError ( 0.0192705923625467 );
75 const LifeV::Real tolerance ( 1e-10 );
77 ETA_Blocks2DTest eta_blocks2DTest;
80 const std::vector<Real> errors = eta_blocks2DTest.run();
81 const bool unsuccess = ( std::abs (errors[0] - knownMatrixError) > tolerance ||
82 std::abs (errors[1] - knownRhsError) > tolerance);
88 std::cout <<
"End Result: TEST NOT PASSED" << std::endl;
95 std::cout <<
"End Result: TEST PASSED" << std::endl;
106 return ( EXIT_FAILURE );
110 return ( EXIT_SUCCESS );
int main(int argc, char **argv)