/[escript]/trunk/doc/examples/inversion/grav_ermapper.py
ViewVC logotype

Diff of /trunk/doc/examples/inversion/grav_ermapper.py

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

revision 4391 by gross, Mon Apr 22 03:21:48 2013 UTC revision 4392 by caltinay, Mon May 6 02:18:33 2013 UTC
# Line 59  def work(): Line 59  def work():
59    print("density = %s"%density)    print("density = %s"%density)
60    
61    g, w =  db.getGravitySurveys()[0]    g, w =  db.getGravitySurveys()[0]
62    saveSilo("result0.silo", density=density, gravity_anomaly=g, gravity_weight=w)    if saveSilo("result0.silo", density=density, gravity_anomaly=g, gravity_weight=w):
63    print("Results saved in result0.silo")        print("Results saved in result0.silo")
64      else:
65          print("Failed to save result0.silo. Possibly no Silo support.")
66    
67    saveVTK("result0.vtu", density=density, gravity_anomaly=g, gravity_weight=w)    saveVTK("result0.vtu", density=density, gravity_anomaly=g, gravity_weight=w)
68    print("Results saved in result0.vtu")    print("Results saved in result0.vtu")

Legend:
Removed from v.4391  
changed lines
  Added in v.4392

  ViewVC Help
Powered by ViewVC 1.1.26