[MOAB-dev] r3766 - MOAB/trunk/test/io
Tim Tautges
tautges at mcs.anl.gov
Mon Apr 12 12:14:43 CDT 2010
Thanks!
- tim
iulian at mcs.anl.gov wrote:
> Author: iulian
> Date: 2010-04-12 10:32:32 -0500 (Mon, 12 Apr 2010)
> New Revision: 3766
>
> Added:
> MOAB/trunk/test/io/smf_test.cc
> MOAB/trunk/test/io/three.smf
> Modified:
> MOAB/trunk/test/io/Makefile.am
> Log:
> add smf reader test
>
>
> Modified: MOAB/trunk/test/io/Makefile.am
> ===================================================================
> --- MOAB/trunk/test/io/Makefile.am 2010-04-10 15:28:22 UTC (rev 3765)
> +++ MOAB/trunk/test/io/Makefile.am 2010-04-12 15:32:32 UTC (rev 3766)
> @@ -30,7 +30,8 @@
> $(EXODUS_TEST) \
> gmsh_test \
> nastran_test \
> - stl_test
> + stl_test \
> + smf_test
>
> check_PROGRAMS = $(TESTS)
>
> @@ -62,5 +63,8 @@
> stl_test_SOURCES = $(srcdir)/../TestUtil.hpp stl_test.cc
> stl_test_DEPENDENCIES = $(LDADD)
>
> +smf_test_SOURCES = $(srcdir)/../TestUtil.hpp smf_test.cc
> +smf_test_DEPENDENCIES = $(LDADD)
> +
> MOSTLYCLEANFILES = dumped_acis.sat
>
>
> Added: MOAB/trunk/test/io/smf_test.cc
> ===================================================================
> --- MOAB/trunk/test/io/smf_test.cc (rev 0)
> +++ MOAB/trunk/test/io/smf_test.cc 2010-04-12 15:32:32 UTC (rev 3766)
> @@ -0,0 +1,122 @@
> +#include "TestUtil.hpp"
> +#include "moab/Core.hpp"
> +#define IS_BUILDING_MB
> +#include "ReadSmf.hpp"
> +#include "moab/Range.hpp"
> +#include "FileOptions.hpp"
> +
> +using namespace moab;
> +
> +#ifdef SRCDIR
> +static const char example[] = STRINGIFY(SRCDIR) "/three.smf";
> +#else
> +static const char example[] = "three.smf";
> +#endif
> +
> +void read_file( Interface& moab, const char* input_file );
> +void test_read_nodes();
> +void test_read_triangles();
> +
> +int main()
> +{
> + int result = 0;
>
--
================================================================
"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