[MOAB-dev] r3742 - MOAB/trunk/tools
karpeev at mcs.anl.gov
karpeev at mcs.anl.gov
Mon Apr 5 15:37:29 CDT 2010
Author: karpeev
Date: 2010-04-05 15:37:28 -0500 (Mon, 05 Apr 2010)
New Revision: 3742
Added:
MOAB/trunk/tools/parread.cpp
Modified:
MOAB/trunk/tools/Makefile.am
Log:
Added a simple parallel read tool that reports read times. Useful for benchmarking partitioned files.
Modified: MOAB/trunk/tools/Makefile.am
===================================================================
--- MOAB/trunk/tools/Makefile.am 2010-04-05 17:08:45 UTC (rev 3741)
+++ MOAB/trunk/tools/Makefile.am 2010-04-05 20:37:28 UTC (rev 3742)
@@ -113,6 +113,10 @@
dagmc_DIR =
endif
+if ENABLE_mbparread
+ bin_PROGRAMS += mbparread
+endif
+
SUBDIRS = $(refiner_DIR) \
$(mbcoupler_DIR) \
$(mbzoltan_DIR) \
@@ -121,6 +125,9 @@
$(qvdual_DIR) \
$(dagmc_DIR)
+mbparread_SOURCES = parread.cpp
+mbparread_DEPENDENCIES = $(LDADD)
+
mbconvert_SOURCES = convert.cpp
mbconvert_DEPENDENCIES = $(LDADD)
Added: MOAB/trunk/tools/parread.cpp
===================================================================
--- MOAB/trunk/tools/parread.cpp (rev 0)
+++ MOAB/trunk/tools/parread.cpp 2010-04-05 20:37:28 UTC (rev 3742)
@@ -0,0 +1,365 @@
+/**
+ * MOAB, a Mesh-Oriented datABase, is a software component for creating,
+ * storing and accessing finite element mesh data.
+ *
+ * Copyright 2004 Sandia Corporation. Under the terms of Contract
+ * DE-AC04-94AL85000 with Sandia Coroporation, the U.S. Government
+ * retains certain rights in this software.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ */
+
+// If Microsoft compiler, then WIN32
+#if defined(_MSC_VER) || defined(__MINGW32__)
+# ifndef WIN32
+# define WIN32
+# endif
More information about the moab-dev
mailing list