[cig-commits] r11700 - cs/benchmark/cigma/trunk/src/tests
luis at geodynamics.org
luis at geodynamics.org
Tue Apr 1 01:40:25 PDT 2008
Author: luis
Date: 2008-04-01 01:40:25 -0700 (Tue, 01 Apr 2008)
New Revision: 11700
Added:
cs/benchmark/cigma/trunk/src/tests/TestCellVolume.cpp
Modified:
cs/benchmark/cigma/trunk/src/tests/Makefile
Log:
Check volume method on each respective reference cell
Modified: cs/benchmark/cigma/trunk/src/tests/Makefile
===================================================================
--- cs/benchmark/cigma/trunk/src/tests/Makefile 2008-04-01 08:40:22 UTC (rev 11699)
+++ cs/benchmark/cigma/trunk/src/tests/Makefile 2008-04-01 08:40:25 UTC (rev 11700)
@@ -25,6 +25,7 @@
TestZeroField.o \
TestTimer.o \
TestStringUtils.o \
+ TestCellVolume.o \
TESTS = $(TESTOBJS:.o=.out)
@@ -35,7 +36,7 @@
$(CXX) $(FLAGS) -c $^
Test%.out: Test%.o
- $(CXX) $(LDFLAGS) $^ $(CIGMALIB) $(ANNLIB) -o $@
+ $(CXX) -g $(LDFLAGS) $^ $(CIGMALIB) $(ANNLIB) -o $@
clean:
rm -f $(TESTOBJS)
Added: cs/benchmark/cigma/trunk/src/tests/TestCellVolume.cpp
===================================================================
--- cs/benchmark/cigma/trunk/src/tests/TestCellVolume.cpp (rev 0)
+++ cs/benchmark/cigma/trunk/src/tests/TestCellVolume.cpp 2008-04-01 08:40:25 UTC (rev 11700)
@@ -0,0 +1,22 @@
+#include <iostream>
+#include <cassert>
+#include "../Tet.h"
+#include "../Hex.h"
+#include "../Tri.h"
+#include "../Quad.h"
+
+using namespace std;
+using namespace cigma;
+
+int main()
+{
+ Tri tri;
+ Quad quad;
+ Tet tet;
+ Hex hex;
+ cout << "tet.volume() = " << tet.volume() << endl;
+ cout << "hex.volume() = " << hex.volume() << endl;
+ cout << "tri.volume() = " << tri.volume() << endl;
+ cout << "quad.volume() = " << quad.volume() << endl;
+ return 0;
+}
More information about the cig-commits
mailing list