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

Tim Tautges tautges at mcs.anl.gov
Fri Oct 8 09:55:50 CDT 2010



On 10/07/2010 05:04 PM, kraftche at cae.wisc.edu wrote:
> 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

Hmm, why?

- tim

>
>
> 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 ) {
>

-- 
================================================================
"You will keep in perfect peace him whose mind is
   steadfast, because he trusts in you."               Isaiah 26:3

              Tim Tautges            Argonne National Laboratory
          (tautges at mcs.anl.gov)      (telecommuting from UW-Madison)
          phone: (608) 263-8485      1500 Engineering Dr.
            fax: (608) 263-4499      Madison, WI 53706



More information about the moab-dev mailing list