[MOAB-dev] r4206 - MOAB/trunk/tools/mbzoltan
kraftche at cae.wisc.edu
kraftche at cae.wisc.edu
Thu Oct 7 17:04:52 CDT 2010
Author: kraftche
Date: 2010-10-07 17:04:52 -0500 (Thu, 07 Oct 2010)
New Revision: 4206
Added:
MOAB/trunk/tools/mbzoltan/mbpart.cpp
Modified:
MOAB/trunk/tools/mbzoltan/Makefile.am
Log:
o build and install MBZoltan as a library
o add alternate CLI front end for MBZoltan: mbpart
Modified: MOAB/trunk/tools/mbzoltan/Makefile.am
===================================================================
--- MOAB/trunk/tools/mbzoltan/Makefile.am 2010-10-07 20:40:44 UTC (rev 4205)
+++ MOAB/trunk/tools/mbzoltan/Makefile.am 2010-10-07 22:04:52 UTC (rev 4206)
@@ -1,12 +1,20 @@
-LDADD = $(top_builddir)/src/libMOAB.la $(ZOLTAN_LIB_FLAGS) $(ZOLTAN_LIBS)
AM_CPPFLAGS += -DIS_BUILDING_MB\
-I$(top_srcdir)/src \
-I$(top_srcdir)/src/parallel \
-I$(top_builddir)/src \
$(ZOLTAN_INC_FLAGS)
-bin_PROGRAMS = mbzoltan
-mbzoltan_SOURCES = MBZoltan.cpp MBZoltan.hpp main.cpp
-mbzoltan_DEPENDENCIES = $(top_builddir)/src/libMOAB.la
+AM_LDFLAGS += $(ZOLTAN_LIB_FLAGS)
+lib_LTLIBRARIES = libmbzoltan.la
+libmbzoltan_la_LIBADD = $(top_builddir)/src/libMOAB.la $(ZOLTAN_LIBS)
+libmbzoltan_la_includedir = $(includedir)
+libmbzoltan_la_SOURCES = MBZoltan.cpp
+libmbzoltan_la_include_HEADERS = MBZoltan.hpp
+bin_PROGRAMS = mbzoltan mbpart
+LDADD = libmbzoltan.la
+mbzoltan_SOURCES = main.cpp
+mbpart_SOURCES = mbpart.cpp
+
+
Added: MOAB/trunk/tools/mbzoltan/mbpart.cpp
===================================================================
--- MOAB/trunk/tools/mbzoltan/mbpart.cpp (rev 0)
+++ MOAB/trunk/tools/mbzoltan/mbpart.cpp 2010-10-07 22:04:52 UTC (rev 4206)
@@ -0,0 +1,198 @@
+#include "MBZoltan.hpp"
+#include "moab/Core.hpp"
+
+#include <iostream>
+#include <stdlib.h>
+#include <list>
+
+using namespace moab;
+
+const char DEFAULT_ZOLTAN_METHOD[] = "RCB";
+const char ZOLTAN_PARMETIS_METHOD[] = "PARMETIS";
+const char ZOLTAN_OCTPART_METHOD[] = "OCTPART";
+
+const char usage[] = " <# parts> <infile> <outfile> [-<n>] [{-z|-p|-o} <method>] [-s|-t|-b]";
+
+void usage_err( const char* argv0 ) {
More information about the moab-dev
mailing list