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

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

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

revision 4575 by jfenwick, Tue Jan 22 09:30:23 2013 UTC revision 4576 by sshaw, Mon Dec 9 23:35:30 2013 UTC
# Line 154  for d in [2,3]: Line 154  for d in [2,3]:
154                    # set tags:                    # set tags:
155                    for fs in [ContinuousFunction(dom), Function(dom), FunctionOnBoundary(dom), FunctionOnContactOne(dom)]:                    for fs in [ContinuousFunction(dom), Function(dom), FunctionOnBoundary(dom), FunctionOnContactOne(dom)]:
156                         m=whereNegative(fs.getX()[d-1]-CUT)                         m=whereNegative(fs.getX()[d-1]-CUT)
157                 fs.getDomain().setTagMap('tag1',1)                         fs.getDomain().setTagMap('tag1',1)
158                         fs.setTags('tag1',m)                         fs.setTags('tag1',m)
159                         fs.setTags(100,1-m)                         fs.setTags(100,1-m)
160                    dom.write(os.path.join(MESH_DIRECTORY,filename))                    dom.write(os.path.join(MESH_DIRECTORY,filename))

Legend:
Removed from v.4575  
changed lines
  Added in v.4576

  ViewVC Help
Powered by ViewVC 1.1.26