[MOAB-dev] r2113 - MOAB/trunk/tools/mbzoltan

kraftche at mcs.anl.gov kraftche at mcs.anl.gov
Wed Oct 1 12:22:32 CDT 2008


Author: kraftche
Date: 2008-10-01 12:22:30 -0500 (Wed, 01 Oct 2008)
New Revision: 2113

Modified:
   MOAB/trunk/tools/mbzoltan/MBZoltan.cpp
   MOAB/trunk/tools/mbzoltan/MBZoltan.hpp
Log:
Minimize headers included in MBZoltan.hpp

Modified: MOAB/trunk/tools/mbzoltan/MBZoltan.cpp
===================================================================
--- MOAB/trunk/tools/mbzoltan/MBZoltan.cpp	2008-10-01 17:21:35 UTC (rev 2112)
+++ MOAB/trunk/tools/mbzoltan/MBZoltan.cpp	2008-10-01 17:22:30 UTC (rev 2113)
@@ -28,6 +28,7 @@
 #include "MBZoltan.hpp"
 #include "MBInterface.hpp"
 #include "MBInternals.hpp"
+#include "MBParallelComm.hpp"
 #include "MBRange.hpp"
 #include "MBWriteUtilIface.hpp"
 #include "MeshTopoUtil.hpp"
@@ -46,6 +47,20 @@
 
 const bool debug = false;
 
+MBZoltan::MBZoltan( MBInterface *impl , 
+                    const bool use_coords,
+                    int argc, 
+                    char **argv ) 
+                   : mbImpl(impl), 
+                     myZZ(NULL), 
+                     newMoab(false), 
+                     useCoords(use_coords),
+                     argcArg(argc), 
+                     argvArg(argv)
+{
+  mbpc = MBParallelComm::get_pcomm(mbImpl, 0);
+}
+
 MBZoltan::~MBZoltan() 
 {
   if (NULL == myZZ) delete myZZ;

Modified: MOAB/trunk/tools/mbzoltan/MBZoltan.hpp
===================================================================
--- MOAB/trunk/tools/mbzoltan/MBZoltan.hpp	2008-10-01 17:21:35 UTC (rev 2112)
+++ MOAB/trunk/tools/mbzoltan/MBZoltan.hpp	2008-10-01 17:22:30 UTC (rev 2113)
@@ -55,21 +55,20 @@
 }
 
 #include <vector>
+#include "MBTypes.h"
 
-#include "MBInterface.hpp"
-#include "MBParallelComm.hpp"
+  class MBParallelComm;
+  class MBInterface;
+  class MBRange;
 
   class MBZoltan 
   {
 
   public:
-    MBZoltan(MBInterface *impl = NULL, const bool use_coords = false,
-             int argc = 0, char **argv = NULL) 
-        : mbImpl(impl), myZZ(NULL), newMoab(false), useCoords(use_coords),
-          argcArg(argc), argvArg(argv)
-      {
-        mbpc = MBParallelComm::get_pcomm(mbImpl, 0);
-      }
+    MBZoltan( MBInterface *impl = NULL, 
+              const bool use_coords = false,
+              int argc = 0, 
+              char **argv = NULL );
 
     ~MBZoltan();
 




More information about the moab-dev mailing list