[MOAB-dev] r5108 - in MOAB/trunk: . src src/io src/moab src/parallel src/parallel/moab test test/parallel tools tools/dagmc tools/mbzoltan tools/refiner

Steve Jackson sjackson at cae.wisc.edu
Wed Aug 24 10:41:42 CDT 2011


On Aug 24, 2011, at 9:59 , Paul Wilson wrote:

> Hi Tim, (or perhaps Steve?)
> 
> On 08/23/2011 02:36 PM, tautges at mcs.anl.gov wrote:
>> This commit also moves ProgOptions into MOAB proper; I think we can safely say this is a
>> useful addition that applications might be interested in (and it's useful for testing too).
>> This also moves test_prog_opt from tools into test.
> 
> Does this come with any simple documentation/Makefiles(?) to facilitate people using this outside of MOAB?

The top of ProgOptions.hpp has a block comment with simple documentation.  These comments should also appear in Doxygen output, though I haven't verified that such output would be neatly formatted.

Under Tim's changes in r5108, a program that uses MOAB can simply include 'moab/ProgOptions.hpp' and link against libMOAB.  

A program that doesn't link to MOAB could copy src/ProgOptions.cpp and src/moab/ProgOptions.hpp, adding them to its own source files.  The makefile settings would be the same as for any other set of source files that a program includes.  However, one source change would be necessary: ProgOptions.cpp includes 'moab/ProgOptions.hpp,' and such a non-MOAB program would probably not have an include directory named 'moab.'  So the include path in the .cpp file would need to be tweaked.  Besides that change, the ProgOptions.*pp files should be easy to pull from MOAB and drop into another project.  I already do this with our mcnp2cad tool.
~S


More information about the moab-dev mailing list