[MOAB-dev] r4167 - MOAB/trunk/src/io

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Mon Sep 27 15:35:38 CDT 2010


Author: kraftche
Date: 2010-09-27 15:35:38 -0500 (Mon, 27 Sep 2010)
New Revision: 4167

Modified:
   MOAB/trunk/src/io/Tqdcfr.cpp
Log:
call MPI_Init before creating moab::Core instance

Modified: MOAB/trunk/src/io/Tqdcfr.cpp
===================================================================
--- MOAB/trunk/src/io/Tqdcfr.cpp	2010-09-27 20:27:50 UTC (rev 4166)
+++ MOAB/trunk/src/io/Tqdcfr.cpp	2010-09-27 20:35:38 UTC (rev 4167)
@@ -2628,7 +2628,9 @@
 
 int main(int argc, char* argv[])
 {
-
+#ifdef USE_MPI
+  int err = MPI_Init(&argc, &argv);
+#endif
     // Check command line arg
   const char* file = STRINGIFY(SRCDIR) "/brick_cubit10.2.cub";
   if (argc < 2)
@@ -2678,7 +2680,6 @@
   delete my_impl;
 
 #ifdef USE_MPI
-  int err = MPI_Init(&argc, &argv);
   int nprocs, rank;
   err = MPI_Comm_size(MPI_COMM_WORLD, &nprocs);
   err = MPI_Comm_rank(MPI_COMM_WORLD, &rank);






























More information about the moab-dev mailing list