[MOAB-dev] r3658 - in MOAB/trunk: . examples examples/simple

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Wed Mar 17 17:16:45 CDT 2010


Author: kraftche
Date: 2010-03-17 17:16:45 -0500 (Wed, 17 Mar 2010)
New Revision: 3658

Added:
   MOAB/trunk/examples/simple/
   MOAB/trunk/examples/simple/GetEntities.cpp
   MOAB/trunk/examples/simple/makefile.in
Removed:
   MOAB/trunk/examples/GetEntities.cpp
Modified:
   MOAB/trunk/configure.ac
   MOAB/trunk/examples/examples.make.in
Log:
Move GetEntities example to the simple/ subdir as requested by Tim.

NOTE: If you've run 'make check' between this checkin and the one
in which I moved the examples out of their separate subdirectories
you might get spurious build errors running 'make check'.  To fix
this, do the following:
  rm examples/.deps/GetEntities.Po


Modified: MOAB/trunk/configure.ac
===================================================================
--- MOAB/trunk/configure.ac	2010-03-17 21:52:22 UTC (rev 3657)
+++ MOAB/trunk/configure.ac	2010-03-17 22:16:45 UTC (rev 3658)
@@ -1060,6 +1060,7 @@
                  doc/user.dox
                  examples/Makefile
                  examples/examples.make
+                 examples/simple/makefile
                  ])
 AC_CONFIG_COMMANDS([src/MOAB_FCDefs.h],
   [sed -e "s/FC_FUNC/MOAB_FC_FUNC/" src/FCDefs.h >src/MOAB_FCDefs.h])

Deleted: MOAB/trunk/examples/GetEntities.cpp
===================================================================
--- MOAB/trunk/examples/GetEntities.cpp	2010-03-17 21:52:22 UTC (rev 3657)
+++ MOAB/trunk/examples/GetEntities.cpp	2010-03-17 22:16:45 UTC (rev 3658)
@@ -1,27 +0,0 @@
-#include "MBCore.hpp"
-#include "MBRange.hpp"
-#include <iostream>
-
-int main(int argc, char **argv) {
-  if (1 == argc) {
-    std::cout << "Usage: " << argv[0] << " <filename>" << std::endl;
-    return 0;
-  }
-
-    // instantiate & load a mesh from a file
-  MBCore *mb = new MBCore();
-  MBErrorCode rval = mb->load_mesh(argv[1]);
-
-  MBRange ents;
-
-    // iterate over dimensions
-  for (int d = 0; d <= 3; d++) {
-    rval = mb->get_entities_by_dimension(0, d, ents);
-    for (MBRange::iterator it = ents.begin(); it != ents.end(); it++) {
-      MBEntityHandle ent = *it;
-      std::cout << "Found d=" << d << " entity " 
-                << mb->id_from_handle(ent) << "." << std::endl;
-    }
-  }
-  return 0;
-}

Modified: MOAB/trunk/examples/examples.make.in
===================================================================
--- MOAB/trunk/examples/examples.make.in	2010-03-17 21:52:22 UTC (rev 3657)
+++ MOAB/trunk/examples/examples.make.in	2010-03-17 22:16:45 UTC (rev 3658)
@@ -8,7 +8,7 @@
 
 default: all
 
-all: FileRead GeomSetHierarchy GetEntities SetsNTags SkinMesh SurfArea
+all: FileRead GeomSetHierarchy SetsNTags SkinMesh SurfArea
 
 FileRead: FileRead.o
 	$(CXX) -o $@ $< $(MOAB_LIBS_LINK)
@@ -16,9 +16,6 @@
 GeomSetHierarchy: GeomSetHierarchy.o
 	$(CXX) -o $@ $< $(MOAB_LIBS_LINK)
 
-GetEntities: GetEntities.o
-	$(CXX) -o $@ $< $(MOAB_LIBS_LINK)
-
 SetsNTags: SetsNTags.o
 	$(CXX) -o $@ $< $(MOAB_LIBS_LINK)
 

Copied: MOAB/trunk/examples/simple/GetEntities.cpp (from rev 3656, MOAB/trunk/examples/GetEntities.cpp)
===================================================================
--- MOAB/trunk/examples/simple/GetEntities.cpp	                        (rev 0)
+++ MOAB/trunk/examples/simple/GetEntities.cpp	2010-03-17 22:16:45 UTC (rev 3658)
@@ -0,0 +1,27 @@
+#include "MBCore.hpp"
+#include "MBRange.hpp"
+#include <iostream>
+
+int main(int argc, char **argv) {
+  if (1 == argc) {
+    std::cout << "Usage: " << argv[0] << " <filename>" << std::endl;
+    return 0;
+  }
+
+    // instantiate & load a mesh from a file
+  MBCore *mb = new MBCore();
+  MBErrorCode rval = mb->load_mesh(argv[1]);
+
+  MBRange ents;
+
+    // iterate over dimensions
+  for (int d = 0; d <= 3; d++) {
+    rval = mb->get_entities_by_dimension(0, d, ents);
+    for (MBRange::iterator it = ents.begin(); it != ents.end(); it++) {
+      MBEntityHandle ent = *it;
+      std::cout << "Found d=" << d << " entity " 
+                << mb->id_from_handle(ent) << "." << std::endl;
+    }
+  }
+  return 0;
+}

Copied: MOAB/trunk/examples/simple/makefile.in (from rev 3656, MOAB/trunk/examples/examples.make.in)
===================================================================
--- MOAB/trunk/examples/simple/makefile.in	                        (rev 0)
+++ MOAB/trunk/examples/simple/makefile.in	2010-03-17 22:16:45 UTC (rev 3658)
@@ -0,0 +1,14 @@
+exec_prefix = @exec_prefix@
+prefix = @prefix@
+libdir = @libdir@
+include $(libdir)/moab.make
+
+CPPFLAGS = ${MOAB_INCLUDES}
+CXXFLAGS = -g
+
+default: all
+
+all: GetEntities
+
+GetEntities: GetEntities.o
+	$(CXX) -o $@ $< $(MOAB_LIBS_LINK)


Property changes on: MOAB/trunk/examples/simple/makefile.in
___________________________________________________________________
Added: svn:mergeinfo
   + 



More information about the moab-dev mailing list