[cig-commits] r7559 - short/3D/PyLith/trunk/playpen/verification
brad at geodynamics.org
brad at geodynamics.org
Thu Jun 28 20:42:55 PDT 2007
Author: brad
Date: 2007-06-28 20:42:55 -0700 (Thu, 28 Jun 2007)
New Revision: 7559
Modified:
short/3D/PyLith/trunk/playpen/verification/verify.py
Log:
Fixed bug where split() relied on single space between fields, not whitespace.
Modified: short/3D/PyLith/trunk/playpen/verification/verify.py
===================================================================
--- short/3D/PyLith/trunk/playpen/verification/verify.py 2007-06-29 01:21:14 UTC (rev 7558)
+++ short/3D/PyLith/trunk/playpen/verification/verify.py 2007-06-29 03:42:55 UTC (rev 7559)
@@ -3,8 +3,9 @@
class Verifier:
def __init__(self):
- self.pylith = '/PETSc3/cig/pylith3d/bin/pylith'
- self.petscOpts = ['--petsc.ksp_type=preonly', '--petsc.pc_type=lu', '--petsc.mat_type=aijmumps']
+ self.pylith = '/Users/brad/tools/cig/gcc-4.0/bin/pylith'
+# self.petscOpts = ['--petsc.ksp_type=preonly', '--petsc.pc_type=lu', '--petsc.mat_type=aijmumps']
+ self.petscOpts = ['--petsc.pc_type=asm']
self.exp = re.compile(r'SCALARS \w+_verify_t. double 4')
return
@@ -24,10 +25,13 @@
def compare(self, file1, file2):
def convertLine(line):
- parts = line.split(' ')
+ parts = line.split()
+ print parts
return (int(parts[0]), float(parts[1]), float(parts[2]), float(parts[3]))
data1 = self.readVTK(file1)
data2 = self.readVTK(file2)
+ print data1
+ print data2
if not data1 == data2:
# Do full check
for line1, line2 in zip(data1, data2):
More information about the cig-commits
mailing list