47 #include <Epetra_ConfigDefs.h> 50 #include <Epetra_MpiComm.h> 52 #include <Epetra_SerialComm.h> 56 #include <lifev/core/LifeV.hpp> 58 using namespace LifeV;
61 main (
int argc,
char** argv )
64 std::shared_ptr<Epetra_Comm> comm;
67 std::cout <<
"MPI Initialization" << std::endl;
68 MPI_Init ( &argc, &argv );
77 MPI_Comm_size ( MPI_COMM_WORLD, &nprocs );
78 MPI_Comm_rank ( MPI_COMM_WORLD, &rank );
82 std::cout <<
"MPI processes: " << nprocs << std::endl;
83 std::cout <<
"MPI Epetra Initialization ... " << std::endl;
85 comm.reset (
new Epetra_MpiComm ( MPI_COMM_WORLD ) );
91 std::cout <<
"MPI SERIAL Epetra Initialization ... " << std::endl;
92 comm.reset (
new Epetra_SerialComm() );
104 Real tolerance (1e-10);
106 if ( result > tolerance)
114 std::cout <<
"MPI Finalization" << std::endl;
void updateInverseJacobian(const UInt &iQuadPt)
int main(int argc, char **argv)
double Real
Generic real data.