/[escript]/trunk/escript/test/python/ArchiveTests.py
ViewVC logotype

Diff of /trunk/escript/test/python/ArchiveTests.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 158 by matt, Thu Nov 10 03:51:03 2005 UTC revision 159 by matt, Thu Nov 10 04:01:43 2005 UTC
# Line 31  mshList=(bruce.Rectangle(), Line 31  mshList=(bruce.Rectangle(),
31    
32  for msh in mshList:  for msh in mshList:
33    
34      print "\nX -- Continuous:"
35      archDataX = msh.getX()
36      archDataX.archiveData("data-archiveX")
37      exDataX=Data()
38      exDataX.extractData("data-archiveX",ContinuousFunction(msh))
39    
40      diff = archDataX - exDataX
41      (infdiff, supdiff) = (inf(diff), sup(diff))
42      if infdiff != 0 or supdiff != 0:
43        print "*** ERROR: Data value discrepancies %f < X < %f" \
44              % (infdiff, supdiff)
45        sys.exit(1)
46    
47      exDataX.archiveData("data-archive2X");
48    
49    print "\nDataExpanded:"    print "\nDataExpanded:"
50    archDataE=Data([[1.00001],[2.00001]],Function(msh),True)    archDataE=Data([[1.00001],[2.00001]],Function(msh),True)
51    archDataE.archiveData("data-archiveE")    archDataE.archiveData("data-archiveE")

Legend:
Removed from v.158  
changed lines
  Added in v.159

  ViewVC Help
Powered by ViewVC 1.1.26