/[escript]/trunk/pycad/test/python/run_pycad_test.py
ViewVC logotype

Diff of /trunk/pycad/test/python/run_pycad_test.py

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

revision 998 by gross, Tue Jan 30 08:57:37 2007 UTC revision 999 by gross, Tue Feb 27 08:12:37 2007 UTC
# Line 3548  class Test_PyCAD_Design(unittest.TestCas Line 3548  class Test_PyCAD_Design(unittest.TestCas
3548         self.failUnless(pl1 in p)         self.failUnless(pl1 in p)
3549         self.failUnless(pl2 in p)         self.failUnless(pl2 in p)
3550         # get tag maps:         # get tag maps:
3551         m1=d.getCurveTagMap()         m1=d.getTagMap()
3552         mm1=m1.getMapping()         mm1=m1.getMapping()
3553         self.failUnless(len(mm1)==2)         self.failUnless(len(mm1)==3)
3554         self.failUnless(mm1[12]=="A")         self.failUnless(mm1[12]=="A")
3555         self.failUnless(mm1[13]=="B")         self.failUnless(mm1[13]=="B")
3556                 self.failUnless(mm1[11]=="XXXX")
        m2=d.getSurfaceTagMap()  
        mm2=m2.getMapping()  
        self.failUnless(len(mm2)==1)  
        self.failUnless(mm2[11]=="XXXX")  
3557         # clear things:         # clear things:
3558         d.clearItems()         d.clearItems()
3559         i=d.getItems()         i=d.getItems()
# Line 3584  class Test_PyCAD_Design(unittest.TestCas Line 3580  class Test_PyCAD_Design(unittest.TestCas
3580         d.setMeshFileName(mesh_name)         d.setMeshFileName(mesh_name)
3581         self.failUnless(mesh_name == d.getMeshFileName())         self.failUnless(mesh_name == d.getMeshFileName())
3582                
3583         d.setOptions(algorithm=d.ANISO,optimize_quality=False,smoothing=4)         d.setOptions(algorithm=d.TETGEN,optimize_quality=False,smoothing=4)
3584         cmd=d.getCommandString()         cmd=d.getCommandString()
3585         self.failUnless("gmsh -2 -algo aniso -smooth 4  -v 0 -order 1 -o .%smesh.msh .%sscript.geo"%(os.sep,os.sep) == cmd)         self.failUnless("gmsh -2 -algo tetgen -clcurv -smooth 4  -v 0 -order 1 -o .%smesh.msh .%sscript.geo"%(os.sep,os.sep) == cmd)
3586    
3587         d.setOptions(optimize_quality=True)         d.setOptions(optimize_quality=True)
3588         cmd=d.getCommandString()         cmd=d.getCommandString()
3589         self.failUnless("gmsh -2 -algo iso -smooth 3 -optimize  -v 0 -order 1 -o .%smesh.msh .%sscript.geo"%(os.sep,os.sep) == cmd)         self.failUnless("gmsh -2 -algo iso -clcurv -smooth 1 -optimize  -v 0 -order 1 -o .%smesh.msh .%sscript.geo"%(os.sep,os.sep) == cmd)
3590    
3591         p0=Point(0.,0.,0.)         p0=Point(0.,0.,0.)
3592         p1=Point(1.,0.,0.)         p1=Point(1.,0.,0.)

Legend:
Removed from v.998  
changed lines
  Added in v.999

  ViewVC Help
Powered by ViewVC 1.1.26