40 #include <Epetra_ConfigDefs.h> 41 #include <Epetra_Comm.h> 44 #include <lifev/core/LifeV.hpp> 45 #include "../importExport/RossEthierSteinmanDec.hpp" 46 #include "../importExport/TestImportExport.hpp" 48 #include <lifev/core/filter/ExporterEnsight.hpp> 49 #include <lifev/core/filter/ExporterVTK.hpp> 50 #include <lifev/core/filter/ExporterHDF5.hpp> 59 using namespace LifeV;
62 main (
int argc,
char** argv )
65 std::shared_ptr<Epetra_Comm> commPtr;
68 std::cout <<
"MPI Initialization" << std::endl;
69 MPI_Init ( &argc, &argv );
78 MPI_Comm_size ( MPI_COMM_WORLD, &nprocs );
79 MPI_Comm_rank ( MPI_COMM_WORLD, &rank );
83 std::cout <<
"MPI processes: " << nprocs << std::endl;
84 std::cout <<
"MPI Epetra Initialization ... " << std::endl;
86 commPtr.reset (
new Epetra_MpiComm ( MPI_COMM_WORLD ) );
92 std::cout <<
"MPI SERIAL Epetra Initialization ... " << std::endl;
93 commPtr.reset (
new Epetra_SerialComm() );
102 const std::string exporterName = command_line
.follow ("ensight", 2
, "-e", "--exporter");
104 if ( exporterName.compare (
"vtk" ) == 0 )
106 passed = testImportExport.run<vtk_Type, vtk_Type > ( command_line,
"export" );
108 else if ( exporterName.compare (
"ensight" ) == 0 )
110 passed = testImportExport.run<ensight_Type, ensight_Type > ( command_line,
"export" );
115 passed = testImportExport.run<hdf5_Type, hdf5_Type > ( command_line,
"export" );
122 std::cout <<
"MPI Finalization" << std::endl;
ExporterEnsight data exporter.
LifeV::RegionMesh< LifeV::LinearTetra > mesh_Type
GetPot(const int argc_, char **argv_, const char *FieldSeparator=0x0)
LifeV::ExporterHDF5< TestImportExport::mesh_Type > hdf5_Type
LifeV::ExporterEnsight< TestImportExport::mesh_Type > ensight_Type
LifeV::ExporterVTK< TestImportExport::mesh_Type > vtk_Type
const std::string follow(const char *Default, unsigned No, const char *Option,...)
int main(int argc, char **argv)
ExporterVTK data exporter.