[cig-commits] r6817 - cs/cigma/trunk/tests

luis at geodynamics.org luis at geodynamics.org
Wed May 9 16:57:16 PDT 2007


Author: luis
Date: 2007-05-09 16:57:16 -0700 (Wed, 09 May 2007)
New Revision: 6817

Added:
   cs/cigma/trunk/tests/test_data.h
Log:
Collection of common test data for use in unit tests


Added: cs/cigma/trunk/tests/test_data.h
===================================================================
--- cs/cigma/trunk/tests/test_data.h	2007-05-09 23:54:14 UTC (rev 6816)
+++ cs/cigma/trunk/tests/test_data.h	2007-05-09 23:57:16 UTC (rev 6817)
@@ -0,0 +1,64 @@
+#ifndef __TEST_DATA_H__
+#define __TEST_DATA_H__
+
+#define NTET 21
+double tets[NTET][4*3] = {
+    {-1, -1, -1,  +1, -1, -1,  -1, +1, -1,  -1, -1, +1},
+    {11750,250,-22250,11750,0,-22500,11500,0,-22500,11500,250,-22500},
+    {1750,16000,-7250,1500,15750,-7500,1500,16000,-7250,1500,16000,-7500},
+    {1000,1250,-24000,750,1250,-23750,750,1000,-23750,1000,1000,-23750},
+    {6250,250,-23500,6250,0,-23250,6000,250,-23250,6000,0,-23250},
+    {5750,500,-22750,5750,250,-22500,5500,500,-22500,5500,250,-22500},
+    {4500,500,-24000,4500,250,-23750,4750,250,-24000,4750,500,-24000},
+    {2000,8250,-8000,2000,8250,-8250,2000,8000,-8000,1750,8250,-8000},
+    {10750,14500,-13000,11000,14750,-13250,11000,14500,-13000,11000,14500,-13250},
+    {22250,16500,-13750,22250,16500,-13500,22000,16500,-13500,22250,16250,-13500},
+    {7500,10500,-14750,7750,10500,-14750,7750,10250,-14750,7750,10500,-15000},
+    {7500,3750,-15750,7500,4000,-15750,7500,4000,-15500,7750,4000,-15500},
+    {500,750,-23000,500,500,-22750,250,750,-22750,250,500,-22750},
+    {500,1750,-23750,750,1500,-23750,750,1750,-23500,500,1500,-23750},
+    {16000,750,-24000,16250,750,-23750,16000,500,-24000,16250,500,-24000},
+    {1500,3000,-24000,1500,3250,-24000,1750,3250,-23750,1750,3000,-24000},
+    {14750,500,-23250,15000,250,-23250,14750,250,-23250,15000,500,-23500},
+    {11000,18000,-4500,10750,17750,-4750,10750,18000,-4500,10750,18000,-4750},
+    {250,0,-24000,250,250,-24000,250,0,-23750,500,0,-24000},
+    {20000,24000,0,20250,24000,0,20250,23750,0,20250,24000,-250},
+    {20250,24000,0,20500,24000,0,20250,23750,0,20250,24000,-250}
+};
+
+#define NQ 14
+double cools_weights[NQ] = {
+    0.025396825396825397,
+    0.025396825396825397,
+    0.025396825396825397,
+    0.025396825396825397,
+    0.025396825396825397,
+    0.025396825396825397,
+    0.11811976632397428,
+    0.11811976632397428,
+    0.11811976632397428,
+    0.11811976632397428,
+    0.17711832891412096,
+    0.17711832891412096,
+    0.17711832891412096,
+    0.17711832891412096,
+};
+
+double cools_points[NQ*3] = {
+    -1.0,  0.0,  0.0,
+     0.0,  0.0, -1.0,
+    -1.0,  0.0, -1.0,
+    -1.0, -1.0,  0.0,
+     0.0, -1.0, -1.0,
+     0.0, -1.0,  0.0,
+    -0.79894646954959103, -0.79894646954959103, -0.79894646954959103,
+     0.39683940864877321, -0.79894646954959103, -0.79894646954959103,
+    -0.79894646954959103,  0.39683940864877321, -0.79894646954959103,
+    -0.79894646954959103, -0.79894646954959103,  0.39683940864877321,
+    -0.37125425301361559, -0.37125425301361559, -0.88623724095915324,
+    -0.37125425301361559, -0.37125425301361559, -0.37125425301361559,
+    -0.88623724095915324, -0.37125425301361559, -0.37125425301361559,
+    -0.37125425301361559, -0.88623724095915324, -0.37125425301361559
+};
+
+#endif



More information about the cig-commits mailing list