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

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

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

revision 1868 by gross, Tue Sep 30 02:10:32 2008 UTC revision 1869 by gross, Thu Oct 9 08:34:40 2008 UTC
# Line 53  for root, dirs, files in os.walk(MESH_DI Line 53  for root, dirs, files in os.walk(MESH_DI
53               if fs_name == "FunctionOnBoundary":               if fs_name == "FunctionOnBoundary":
54                   fs= FunctionOnBoundary(dom)                   fs= FunctionOnBoundary(dom)
55               if fs_name == "FunctionOnContactZero":               if fs_name == "FunctionOnContactZero":
56                   fs == FunctionOnContactZero(dom)                   fs = FunctionOnContactZero(dom)
57               if fs_name == "FunctionOnContactOne":               if fs_name == "FunctionOnContactOne":
58                   fs = FunctionOnContactOne(dom)                   fs = FunctionOnContactOne(dom)
59               if fs_name == "ReducedContinuousFunction":               if fs_name == "ReducedContinuousFunction":
# Line 73  for root, dirs, files in os.walk(MESH_DI Line 73  for root, dirs, files in os.walk(MESH_DI
73                   x=fs.getX()                   x=fs.getX()
74                   print "\t data file ",data_file                   print "\t data file ",data_file
75                   if type == "t":                   if type == "t":
76                      n=normalize(x)/length(x-Vector(0.5,fs))                      n=normalize(x)/clip(length(x-Vector(0.5,fs)),1.e-8)
77                      d=outer(n,x)                      d=outer(n,x)
78                   elif type == "v":                   elif type == "v":
79                      d=normalize(x)/length(x-Vector(0.5,fs))                      d=normalize(x)/clip(length(x-Vector(0.5,fs)),1.e-8)
80                   else:                   else:
81                      d=length(x-Vector(0.5,fs))                      d=length(x-Vector(0.5,fs))
82                   d.dump(data_file)                   d.dump(data_file)

Legend:
Removed from v.1868  
changed lines
  Added in v.1869

  ViewVC Help
Powered by ViewVC 1.1.26