[MOAB-dev] r5681 - MOAB/trunk/test/io

hayes6 at mcs.anl.gov hayes6 at mcs.anl.gov
Mon Aug 6 04:38:39 CDT 2012


Author: hayes6
Date: 2012-08-06 04:38:38 -0500 (Mon, 06 Aug 2012)
New Revision: 5681

Added:
   MOAB/trunk/test/io/read_ucd_nc.cpp
Log:
ReadNC ucd test

Added: MOAB/trunk/test/io/read_ucd_nc.cpp
===================================================================
--- MOAB/trunk/test/io/read_ucd_nc.cpp	                        (rev 0)
+++ MOAB/trunk/test/io/read_ucd_nc.cpp	2012-08-06 09:38:38 UTC (rev 5681)
@@ -0,0 +1,204 @@
+#include "TestUtil.hpp"
+#include "moab/Core.hpp"
+
+using namespace moab;
+
+#ifdef MESHDIR
+static const char example[] = STRINGIFY(MESHDIR) "/io/homme26x3458.t.3.nc";
+#else
+static const char example[] = "/io/homme26x3458.t.3.nc";
+#endif
+
+#ifdef USE_MPI
+#include "moab_mpi.h"
+#endif
+
+void read_file( Interface& moab, const char* input_file );
+void test_read_all();
+void test_read_onevar();
+void test_read_onetimestep();
+void test_read_nomesh();
+void test_read_novars();
+ErrorCode get_options(std::string &opts);
+
+int main(int argc, char *argv[])
+{
+  int result = 0;
+
+#ifdef USE_MPI
+  int fail = MPI_Init(&argc, &argv);
+  if (fail) return 1;
+#endif
+  
+  result += RUN_TEST(test_read_all);
+  result += RUN_TEST(test_read_onevar);
+  result += RUN_TEST(test_read_onetimestep);
+  result += RUN_TEST(test_read_nomesh);
+//  result += RUN_TEST(test_read_novars);
+  
+#ifdef USE_MPI
+  fail = MPI_Finalize();
+  if (fail) return 1;
+#endif
+  
+  return result;
+}
+


More information about the moab-dev mailing list