/[escript]/trunk/pycad/py_src/gmsh.py
ViewVC logotype

Diff of /trunk/pycad/py_src/gmsh.py

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

revision 2180 by caltinay, Thu Dec 18 00:30:25 2008 UTC revision 2238 by gross, Tue Feb 3 06:17:34 2009 UTC
# Line 101  class Design(design.Design): Line 101  class Design(design.Design):
101          """          """
102          Sets options for the mesh generator.          Sets options for the mesh generator.
103          """          """
104            if curvature_based_element_size:
105                  print "information: gmsh does not support curvature based element size anymore. Option ignored."
106          if algorithm==None: algorithm=self.DELAUNAY          if algorithm==None: algorithm=self.DELAUNAY
         self.__curvature_based_element_size=curvature_based_element_size  
107          self.__algo=algorithm          self.__algo=algorithm
108          self.__optimize_quality=optimize_quality          self.__optimize_quality=optimize_quality
109          self.__smoothing=smoothing          self.__smoothing=smoothing
# Line 123  class Design(design.Design): Line 124  class Design(design.Design):
124                opt="-optimize "                opt="-optimize "
125          else:          else:
126                opt=""                opt=""
         if self.__curvature_based_element_size:  
               clcurv="-clcurv "  
         else:  
               clcurv=""  
127    
128          exe="gmsh -%s -algo %s %s-smooth %s %s-v 0 -order %s -o %s %s" % (          exe="gmsh -%s -algo %s-smooth %s %s-v 0 -order %s -o %s %s" % (
129                  self.getDim(), self.__algo, clcurv, self.__smoothing, opt,                  self.getDim(), self.__algo, self.__smoothing, opt,
130                  self.getElementOrder(), self.getMeshFileName(),                  self.getElementOrder(), self.getMeshFileName(),
131                  self.getScriptFileName())                  self.getScriptFileName())
132          return exe          return exe

Legend:
Removed from v.2180  
changed lines
  Added in v.2238

  ViewVC Help
Powered by ViewVC 1.1.26