[MOAB-dev] r5787 - in MOAB/trunk: . examples examples/moabuse

milad at mcs.anl.gov milad at mcs.anl.gov
Thu Oct 11 13:30:02 CDT 2012


Author: milad
Date: 2012-10-11 13:30:02 -0500 (Thu, 11 Oct 2012)
New Revision: 5787

Added:
   MOAB/trunk/examples/moabuse/
   MOAB/trunk/examples/moabuse/Makefile.in
   MOAB/trunk/examples/moabuse/README.moabuse
   MOAB/trunk/examples/moabuse/mberr.hpp
   MOAB/trunk/examples/moabuse/moabuse1.cpp
   MOAB/trunk/examples/moabuse/moabuse2.cpp
   MOAB/trunk/examples/moabuse/moabuse3.cpp
   MOAB/trunk/examples/moabuse/moabuse4.cpp
Modified:
   MOAB/trunk/configure.ac
   MOAB/trunk/moab.make.in
Log:
1. I created a few (4) examples which demonstrate some really basic
   MOAB functionality. I've placed them in a directory:
   examples/moabuse The idea is that these can help new users learn
   about how amazing MOAB is. I will continue to add examples as I
   learn more and have time which demonstrate increasingly complex
   functionality.

2. make install will copy the examples to examples/moabuse in the
   install directory. I've added a makefile which uses the contents of
   moab.make to allow users to easily build the examples. However,
   moab.make did not contain the CXX compiler, just the C/CXX/LD
   flags. I added the CXX and CC compilers to moab.make. This is
   important for users who use mpicc/mpicxx to include MPI.



Modified: MOAB/trunk/configure.ac
===================================================================
--- MOAB/trunk/configure.ac	2012-10-11 15:14:13 UTC (rev 5786)
+++ MOAB/trunk/configure.ac	2012-10-11 18:30:02 UTC (rev 5787)
@@ -1187,6 +1187,13 @@
                  examples/examples.make
                  examples/simple/makefile
                  examples/itaps/Makefile
+                 examples/moabuse/Makefile
+                 examples/moabuse/README.moabuse:examples/moabuse/README.moabuse
+                 examples/moabuse/mberr.hpp:examples/moabuse/mberr.hpp
+                 examples/moabuse/moabuse1.cpp:examples/moabuse/moabuse1.cpp
+                 examples/moabuse/moabuse2.cpp:examples/moabuse/moabuse2.cpp
+                 examples/moabuse/moabuse3.cpp:examples/moabuse/moabuse3.cpp
+                 examples/moabuse/moabuse4.cpp:examples/moabuse/moabuse4.cpp
                  MeshFiles/Makefile
                  MeshFiles/unittest/Makefile
                  MeshFiles/unittest/io/Makefile

Copied: MOAB/trunk/examples/moabuse/Makefile.in (from rev 5780, MOAB/trunk/examples/simple/makefile.in)
===================================================================
--- MOAB/trunk/examples/moabuse/Makefile.in	                        (rev 0)
+++ MOAB/trunk/examples/moabuse/Makefile.in	2012-10-11 18:30:02 UTC (rev 5787)
@@ -0,0 +1,50 @@
+#
+# The following few lines get the library install location for MOAB
+# and puts it in MOAB_LIB_DIR; if you just want
+# a simple application makefile, just comment out the next 3 lines and
+# substitute your own value for $(MOAB_LIB_DIR), or set an environment
+# variable pointing to the right place.
+exec_prefix = @exec_prefix@
+prefix = @prefix@
+libdir = @libdir@
+MOAB_LIB_DIR = $(libdir)
+
+include $(MOAB_LIB_DIR)/moab.make
+
+CPPFLAGS = ${MOAB_INCLUDES}
+CXXFLAGS = -g
+CXX      = $(MOAB_CXX)
+
+default: all
+
+all: moabuse1 moabuse2 moabuse3 moabuse4
+
+moabuse1: moabuse1.o
+	$(CXX) -o $@ $< $(MOAB_LIBS_LINK)
+
+moabuse1.o : moabuse1.cpp
+	$(CXX) -c $(MOAB_INCLUDES) $<
+


More information about the moab-dev mailing list