/[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 2534 by caltinay, Thu Jul 16 06:49:19 2009 UTC revision 2841 by jfenwick, Thu Jan 14 01:02:56 2010 UTC
# Line 1  Line 1 
1  ########################################################  ########################################################
2  #  #
3  # Copyright (c) 2003-2008 by University of Queensland  # Copyright (c) 2003-2009 by University of Queensland
4  # Earth Systems Science Computational Center (ESSCC)  # Earth Systems Science Computational Center (ESSCC)
5  # http://www.uq.edu.au/esscc  # http://www.uq.edu.au/esscc
6  #  #
# Line 10  Line 10 
10  #  #
11  ########################################################  ########################################################
12    
13  __copyright__="""Copyright (c) 2003-2008 by University of Queensland  __copyright__="""Copyright (c) 2003-2009 by University of Queensland
14  Earth Systems Science Computational Center (ESSCC)  Earth Systems Science Computational Center (ESSCC)
15  http://www.uq.edu.au/esscc  http://www.uq.edu.au/esscc
16  Primary Business: Queensland, Australia"""  Primary Business: Queensland, Australia"""
# 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.2534  
changed lines
  Added in v.2841

  ViewVC Help
Powered by ViewVC 1.1.26