[cig-commits] r16486 - short/3D/PyLith/trunk/unittests/libtests/faults/data

brad at geodynamics.org brad at geodynamics.org
Fri Apr 2 08:30:04 PDT 2010


Author: brad
Date: 2010-04-02 08:30:04 -0700 (Fri, 02 Apr 2010)
New Revision: 16486

Modified:
   short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDynDataHex8.cc
   short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDynDataTet4.cc
   short/3D/PyLith/trunk/unittests/libtests/faults/data/cohesivedyn.py
Log:
Increased precision of test data.

Modified: short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDynDataHex8.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDynDataHex8.cc	2010-04-02 07:59:04 UTC (rev 16485)
+++ short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDynDataHex8.cc	2010-04-02 15:30:04 UTC (rev 16486)
@@ -1410,33 +1410,33 @@
 
 // Output
 const double pylith::faults::CohesiveDynDataHex8::_fieldIncrSlipE[] = {
-  5.100000000000000,   7.100000000000000,   9.100000000000000,
-  5.200000000000000,   7.200000000000000,  9.199999999999999,
-  5.300000000000000,   7.300000000000000,   9.300000000000001,
-  5.400000000000000,   7.400000000000000,   9.400000000000000,
-  5.497852353458395,   7.498145012421456,   9.500000000000000,
-  5.598633150735187,   7.598835934591629,   9.600000000000000,
-  5.699186008483079,   7.699335886446804,   9.699999999999999,
-  5.799600882460798,   7.799716783656151,   9.800000000000001,
-  5.900000000000000,   7.900000000000000,   9.900000000000000,
-  5.000000000000000,   7.000000000000000,   9.000000000000000,
-  6.100000000000000,   8.100000000000000,  10.100000000000000,
-  6.200000000000000,   8.199999999999999,  10.199999999999999,
-  6.302147646541605,   8.301854987578544,  10.300000000000001,
-  6.501366849264812,   8.501164065408370,  10.500000000000000,
-  6.700813991516921,   8.700664113553195,  10.699999999999999,
-  6.900399117539203,   8.900283216343849,  10.900000000000000,
-  -5.824264070000000,  -7.824264070000000, -10.400000000000000,
-  -6.024264069999999, -8.024264069999999, -10.600000000000000,
-  -6.224264070000000,  -8.224264070000000, -10.800000000000001,
-  -5.424264070000000,  -7.424264070000000, -10.000000000000000,
+  5.100000000000,   7.100000000000,  9.1,
+  5.200000000000,   7.200000000000,  9.2,
+  5.300000000000,   7.300000000000,  9.3,
+  5.400000000000,   7.400000000000,  9.4,
+  5.497852353454,   7.498145012417,  9.5,
+  5.598633150732,   7.598835934589,  9.6,
+  5.699186008481,   7.699335886445,  9.7,
+  5.799600882460,   7.799716783656,  9.8,
+  5.900000000000,   7.900000000000,  9.9,
+  5.000000000000,   7.000000000000,  9.0,
+  6.100000000000,   8.100000000000,  10.1,
+  6.200000000000,   8.200000000000,  10.2,
+  6.302147646546,   8.301854987583,  10.3,
+  6.501366849268,   8.501164065411,  10.5,
+  6.700813991519,   8.700664113555,  10.7,
+  6.900399117540,   8.900283216344,  10.9,
+ -5.824264068712,  -7.824264068712, -10.4,
+ -6.024264068712,  -8.024264068712, -10.6,
+ -6.224264068712,  -8.224264068712, -10.8,
+ -5.424264068712,  -7.424264068712, -10.0,
 };
 
 const double pylith::faults::CohesiveDynDataHex8::_slipSlipE[] = {
-  0.004295383083209,   0.003709975157088,                   0.0,
-  0.002733698529624,   0.002328130816740,                   0.0,
-  0.001627983033842,   0.001328227106392,                   0.0,
-  0.000798235078404,   0.000566432687698,                   0.0,
+  0.004295293093,  0.003709975165,  0.0,
+  0.002733698536,  0.002328130822,  0.0,
+  0.001627983037,  0.001328227109,  0.0,
+  0.000798235080,  0.000566432689,  0.0,
 };
 
 // ----------------------------------------------------------------------
@@ -1468,34 +1468,33 @@
 
 // Output
 const double pylith::faults::CohesiveDynDataHex8::_fieldIncrOpenE[] = {
-  5.100000000000000,   7.100000000000000,   9.100000000000000,
-  5.200000000000000,   7.200000000000000,   9.199999999999999,
-  5.300000000000000,   7.300000000000000,   9.300000000000001,
-  5.400000000000000,   7.400000000000000,   9.400000000000000,
-  5.479235316138440,   7.506377670059572,   9.560964099926785,
-  5.566675616466609,   7.590571311651349,   9.633724303282460,
-  5.657842717320326,   7.679191979989885,   9.715001379770163,
-  5.739890640676003,   7.759602313469650,   9.789443715897779,
-  5.900000000000000,   7.900000000000000,   9.900000000000000,
-  5.000000000000000,   7.000000000000000,   9.000000000000000,
-  6.100000000000000,   8.100000000000000,  10.100000000000000,
-  6.200000000000000,   8.199999999999999,  10.199999999999999,
-  6.320764683861560,   8.293622329940428,  10.239035900073215,
-  6.533324383533390,   8.509428688348651,  10.466275696717540,
-  6.742157282679674,   8.720808020010114,  10.684998620229836,
-  6.960109359323997,   8.940397686530350,  10.910556284102222,
-  -5.400000000000000,  -7.400000000000000,  -9.400000000000000,
-  -5.600000000000000, -7.600000000000000,  -9.600000000000000,
-  -5.800000000000000,  -7.800000000000001,  -9.800000000000001,
-  -5.000000000000000,  -7.000000000000000,  -9.000000000000000,
-
+  5.100000000000,   7.100000000000,   9.100000000000,
+  5.200000000000,   7.200000000000,   9.200000000000,
+  5.300000000000,   7.300000000000,   9.300000000000,
+  5.400000000000,   7.400000000000,   9.400000000000,
+  5.479235316138,   7.506377670060,   9.560964099927,
+  5.566675616467,   7.590571311651,   9.633724303282,
+  5.657842717320,   7.679191979990,   9.715001379770,
+  5.739890640676,   7.759602313470,   9.789443715898,
+  5.900000000000,   7.900000000000,   9.900000000000,
+  5.000000000000,   7.000000000000,   9.000000000000,
+  6.100000000000,   8.100000000000,  10.100000000000,
+  6.200000000000,   8.200000000000,  10.200000000000,
+  6.320764683862,   8.293622329940,  10.239035900073,
+  6.533324383533,   8.509428688349,  10.466275696718,
+  6.742157282680,   8.720808020010,  10.684998620230,
+  6.960109359324,   8.940397686530,  10.910556284102,
+  -5.400000000000,  -7.400000000000,  -9.400000000000,
+  -5.600000000000,  -7.600000000000,  -9.600000000000,
+  -5.800000000000,  -7.800000000000,  -9.800000000000,
+  -5.000000000000,  -7.000000000000,  -9.000000000000,
 };
 
 const double pylith::faults::CohesiveDynDataHex8::_slipOpenE[] = {
-  0.041529467723119,  -0.012755340119145,  -0.121928199853569,
-  0.066648767066781,   0.018857376697302,  -0.067448606564919,
-  0.084314565359348,   0.041616040020231,  -0.030002759540328,
-  0.120218718647994,   0.080795373060699,   0.021112568204443,
+  0.041529367723, -0.012755340119, -0.121928199854,
+  0.066648767067,  0.018857376697, -0.067448606565,
+  0.084314565359,  0.041616040020,  -0.03000275954,
+  0.120218718648,  0.080795373061,  0.021112568204,
 };
 
 // ----------------------------------------------------------------------

Modified: short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDynDataTet4.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDynDataTet4.cc	2010-04-02 07:59:04 UTC (rev 16485)
+++ short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDynDataTet4.cc	2010-04-02 15:30:04 UTC (rev 16486)
@@ -523,23 +523,23 @@
 
 // Output
 const double pylith::faults::CohesiveDynDataTet4::_fieldIncrSlipE[] = {
-  8.100000000000000,   9.100000000000000,  10.100000000000000,
-  8.590767858737991,   9.537826325154031,  10.199999999999999,
-  8.409667711148931,   9.412740703018827,  10.300000000000001,
-  8.346270406998247,   9.362969249432572,  10.400000000000000,
-  8.500000000000000,   9.500000000000000,  10.500000000000000,
-  8.209232141262008,   9.262173674845968,  10.600000000000000,
-  8.690332288851071,   9.687259296981175,  10.800000000000001,
-  8.053729593001753,   9.037030750567428,  10.000000000000000,
-  -7.300777690000000,  -8.252092040000001, -10.699999999999999,
-  -7.500201410000001, -8.452606340000001, -10.900000000000000,
-  -6.702681320000000,  -7.650402550000001, -10.100000000000000,
+  8.10000000,   9.10000000,  10.1,
+  8.59076786,   9.53782633,  10.2,
+  8.40966771,   9.41274070,  10.3,
+  8.34627041,   9.36296925,  10.4,
+  8.50000000,   9.50000000,  10.5,
+  8.20923214,   9.26217367,  10.6,
+  8.69033229,   9.68725930,  10.8,
+  8.05372959,   9.03703075,  10.0,
+ -7.30077769,  -8.25209204, -10.7,
+ -7.50020141,  -8.45260634, -10.9,
+ -6.70268132,  -7.65040255, -10.1,
 };
 
 const double pylith::faults::CohesiveDynDataTet4::_slipSlipE[] = {
-  -0.781536717475984,  -0.675652650308064,                   0.0,
-  -0.219335422297859,  -0.225481406037653,                   0.0,
-  0.107459186003505,   0.074061501134857,                    0.0,
+  -0.78153572, -0.67565265, 0.0,
+  -0.21933542, -0.22548141, 0.0,
+   0.10745919,  0.0740615,  0.0,
 };
 
 // ----------------------------------------------------------------------
@@ -562,23 +562,23 @@
 
 // Output
 const double pylith::faults::CohesiveDynDataTet4::_fieldIncrOpenE[] = {
-  8.100000000000000,   9.100000000000000,  10.100000000000000,
-  8.264502727037895,   9.220523127395790,  10.740925816025284,
-  8.100953712938333,   9.107420233949158,  10.308031118959990,
-  8.043696538468437,   9.062440616276596,  10.173176622877268,
-  8.500000000000000,   9.500000000000000,  10.500000000000000,
-  8.535497272962104,   9.579476872604209,  10.059074183974715,
-  8.999046287061669,   9.992579766050843,  10.791968881040011,
-  8.356303461531564,   9.337559383723404,  10.226823377122733,
-  -7.699999999999999,  -8.699999999999999,  -9.699999999999999,
-  -7.900000000000000,  -8.900000000000000,  -9.900000000000000,
-  -7.100000000000000,  -8.100000000000000,  -9.100000000000000,
+  8.10000000,   9.10000000,  10.10000000,      
+  8.26450273,   9.22052313,  10.74092582,
+  8.10095371,   9.10742023,  10.30803112,
+  8.04369654,   9.06244062,  10.17317662,
+  8.50000000,   9.50000000,  10.50000000,
+  8.53549727,   9.57947687,  10.05907418,
+  8.99904629,   9.99257977,  10.79196888,
+  8.35630346,   9.33755938,  10.22682338,
+  -7.70000000,  -8.70000000,  -9.70000000,
+  -7.90000000,  -8.90000000,  -9.90000000,
+  -7.10000000,  -8.10000000,  -9.10000000,
 };
 
 const double pylith::faults::CohesiveDynDataTet4::_slipOpenE[] = {
-  -0.129005554075791,  -0.041046254791581,  -1.081851632050568,
-  0.398092574123335,  0.385159532101686, -0.016062237919978,
-  0.712606923063127,   0.675118767446806,   0.453646754245465,
+  -0.12900545, -0.04104625, -1.08185163,
+  0.39809257,  0.38515953, -0.01606224,
+  0.71260692,  0.67511877,  0.45364675,
 };
 
 // ----------------------------------------------------------------------

Modified: short/3D/PyLith/trunk/unittests/libtests/faults/data/cohesivedyn.py
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/faults/data/cohesivedyn.py	2010-04-02 07:59:04 UTC (rev 16485)
+++ short/3D/PyLith/trunk/unittests/libtests/faults/data/cohesivedyn.py	2010-04-02 15:30:04 UTC (rev 16486)
@@ -472,6 +472,7 @@
     if testCase == "slip":
         slipVertex[:,2] = 0    
 
+    numpy.set_printoptions(precision=12)
     print "dispIncrE \n", dispIncrE
     print "slipVertex \n", slipVertex
 



More information about the CIG-COMMITS mailing list