[MOAB-dev] Closing/opening moab instances

Tim Tautges (ANL) tautges at mcs.anl.gov
Thu Jan 9 12:43:01 CST 2014


Either declare the Core instance in a local variable, e.g. as in the test/MBTest.cpp test (mb_vertex_coordinate_test 
function and the ones following), or use Interface::delete_mesh.  I'd recommend the former, as that gives you a clean 
instance.

- tim

On 01/09/2014 12:22 PM, Patrick Shriwise wrote:
> Hi all,
>
> Working on a set of tests in which I would like to read an ACIS file independently in several different functions using
> moab::Core::load_file. I believe that I am creating a new moab instance in every function. However when I load the file
> in a new function, the data from the original load seems to remain. Any advice on how to load the file without having it
> overlap between functions?
>
> Cheers,
>


More information about the moab-dev mailing list