[MOAB-dev] r4091 - MOAB/trunk/test/parallel
kraftche at cae.wisc.edu
kraftche at cae.wisc.edu
Mon Aug 16 12:08:35 CDT 2010
Author: kraftche
Date: 2010-08-16 12:08:34 -0500 (Mon, 16 Aug 2010)
New Revision: 4091
Added:
MOAB/trunk/test/parallel/partcheck.cpp
Modified:
MOAB/trunk/test/parallel/Makefile.am
Log:
add simple test to load file in parallel, print read time, and call some functions to check consistancy of partitioned data
Modified: MOAB/trunk/test/parallel/Makefile.am
===================================================================
--- MOAB/trunk/test/parallel/Makefile.am 2010-08-16 17:07:09 UTC (rev 4090)
+++ MOAB/trunk/test/parallel/Makefile.am 2010-08-16 17:08:34 UTC (rev 4091)
@@ -31,7 +31,7 @@
HDF5_TESTS =
endif
-check_PROGRAMS = $(TESTS) mbparallelcomm_test
+check_PROGRAMS = $(TESTS) mbparallelcomm_test partcheck
pcomm_unit_SOURCES = pcomm_unit.cpp
parallel_hdf5_test_SOURCES = parallel_hdf5_test.cc
@@ -42,6 +42,7 @@
pcomm_serial_SOURCES = pcomm_serial.cpp
mbparallelcomm_test_SOURCES = mbparallelcomm_test.cpp
scdtest_SOURCES = scdtest.cpp
+partcheck_SOURCES = partcheck.cpp
# Other files to clean up (e.g. output from tests)
MOSTLYCLEANFILES = mhdf_ll.h5m
Added: MOAB/trunk/test/parallel/partcheck.cpp
===================================================================
--- MOAB/trunk/test/parallel/partcheck.cpp (rev 0)
+++ MOAB/trunk/test/parallel/partcheck.cpp 2010-08-16 17:08:34 UTC (rev 4091)
@@ -0,0 +1,236 @@
+#include "moab/Core.hpp"
+#include "moab/Range.hpp"
+#include "moab/ParallelComm.hpp"
+#include "moab/Skinner.hpp"
+#include "moab/CN.hpp"
+
+#include <iostream>
+#include <sstream>
+#include <limits>
+#include <string>
+#include <time.h>
+
+#include "moab_mpi.h"
+
+const char PARTTAG[] = "PARALLEL_PARTITION";
+const char READ_DEL_OPT[] = "READ_DELETE";
+const char BCAST_DEL_OPT[] = "BCAST_DELETE";
+const char READ_PART_OPT[] = "READ_PART";
+const char* const DEFAULT_MODE = READ_PART_OPT;
+
+const char USAGE[] = " [-v <n>] [-R] [-p <parttag>[=val]] [-D|-B|-P] <input_file>";
+
+static void usage( const char* argv0 ) {
+ std::cerr << "Usage: " << argv0 << USAGE << std::endl
More information about the moab-dev
mailing list