[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

Tim Tautges tautges at mcs.anl.gov
Wed Aug 24 10:46:03 CDT 2011


One other change, ProgOptions.cpp includes moab_mpi.h; you'd probably simply substitute mpi.h for that.

- tim

On 08/24/2011 10:41 AM, Steve Jackson wrote:
>
> 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

-- 
================================================================
"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