/[escript]/trunk/finley/test/python/generate_meshes.py
ViewVC logotype

Diff of /trunk/finley/test/python/generate_meshes.py

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

revision 2549 by jfenwick, Mon Jul 20 06:43:47 2009 UTC revision 2841 by jfenwick, Thu Jan 14 01:02:56 2010 UTC
# Line 153  for d in [2,3]: Line 153  for d in [2,3]:
153                    # set tags:                    # set tags:
154                    for fs in [ContinuousFunction(dom), Function(dom), FunctionOnBoundary(dom), FunctionOnContactOne(dom)]:                    for fs in [ContinuousFunction(dom), Function(dom), FunctionOnBoundary(dom), FunctionOnContactOne(dom)]:
155                         m=whereNegative(fs.getX()[d-1]-CUT)                         m=whereNegative(fs.getX()[d-1]-CUT)
156                         fs.setTags(1,m)                 fs.getDomain().setTagMap('tag1',1)
157                           fs.setTags('tag1',m)
158                         fs.setTags(100,1-m)                         fs.setTags(100,1-m)
159                    dom.write(os.path.join(MESH_DIRECTORY,filename))                    dom.write(os.path.join(MESH_DIRECTORY,filename))
160                    # saveVTK(os.path.join(MESH_DIRECTORY,filename+".vtu"),dom)                    # saveVTK(os.path.join(MESH_DIRECTORY,filename+".vtu"),dom)

Legend:
Removed from v.2549  
changed lines
  Added in v.2841

  ViewVC Help
Powered by ViewVC 1.1.26