[MOAB-dev] r4882 - in MOAB/trunk: src test
kraftche at cae.wisc.edu
kraftche at cae.wisc.edu
Wed May 25 18:09:15 CDT 2011
Author: kraftche
Date: 2011-05-25 18:09:14 -0500 (Wed, 25 May 2011)
New Revision: 4882
Added:
MOAB/trunk/src/ReorderTool.cpp
MOAB/trunk/test/reorder_test.cpp
Modified:
MOAB/trunk/src/Makefile.am
MOAB/trunk/test/Makefile.am
Log:
add tool for reordering mesh
Modified: MOAB/trunk/src/Makefile.am
===================================================================
--- MOAB/trunk/src/Makefile.am 2011-05-25 23:08:24 UTC (rev 4881)
+++ MOAB/trunk/src/Makefile.am 2011-05-25 23:09:14 UTC (rev 4882)
@@ -85,6 +85,7 @@
ReadUtil.cpp \
ReadUtil.hpp \
ReaderWriterSet.cpp \
+ ReorderTool.cpp \
ScdElementData.cpp \
ScdElementData.hpp \
ScdInterface.cpp \
@@ -160,6 +161,7 @@
moab/ReadUtilIface.hpp \
moab/ReaderIface.hpp \
moab/ReaderWriterSet.hpp \
+ moab/ReorderTool.hpp \
moab/ScdInterface.hpp \
moab/SetIterator.hpp \
moab/Skinner.hpp \
Added: MOAB/trunk/src/ReorderTool.cpp
===================================================================
--- MOAB/trunk/src/ReorderTool.cpp (rev 0)
+++ MOAB/trunk/src/ReorderTool.cpp 2011-05-25 23:09:14 UTC (rev 4882)
@@ -0,0 +1,663 @@
+/** \file ReorderTool.cpp
+ * \author Jason Kraftcheck
+ * \date 2011-05-23
+ */
+
+#include "moab/ReorderTool.hpp"
+#include "moab/Core.hpp"
+#include "moab/Range.hpp"
+
+#include "SequenceManager.hpp"
+#include "TypeSequenceManager.hpp"
+#include "EntitySequence.hpp"
+
+#include <algorithm>
+#include <numeric>
+#include <set>
+#include <iostream>
+
+namespace moab {
+
+// no-op function as a convenient spot to set a breakpoint
+static inline ErrorCode error(ErrorCode val)
+ { return val; }
+
+#define CHKERR \
More information about the moab-dev
mailing list