MPI initialization added to vtk2h5grid.cc

This commit is contained in:
2013-10-31 13:41:09 +01:00
parent c8eecb51ae
commit 6b6f290ebb
+2
View File
@@ -153,6 +153,7 @@ main (
}
argv += optind;
H5SetErrorHandler (H5Errorhandler);
MPI_Init (&argc, &argv);
for (int i = 0; i < argc; i++) {
std::string vtk_filename = argv[i];
std::string h5grid_filename = vtk_filename.substr (0, vtk_filename.find_last_of ('.')) + ".h5";
@@ -200,5 +201,6 @@ main (
}
H5CloseFile (f);
}
MPI_Finalize ();
return 0;
}