/[escript]/trunk/downunder/test/python/run_gravity.py
ViewVC logotype

Diff of /trunk/downunder/test/python/run_gravity.py

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

revision 4122 by gross, Thu Dec 20 05:42:35 2012 UTC revision 4123 by gross, Thu Dec 20 23:47:55 2012 UTC
# Line 59  inv.getCostFunction().setTradeOffFactors Line 59  inv.getCostFunction().setTradeOffFactors
59  rho_new=inv.run()  rho_new=inv.run()
60  print "rho_new = ",rho_new  print "rho_new = ",rho_new
61  print "rho =", source.getReferenceProperty()  print "rho =", source.getReferenceProperty()
62  g, chi = inv.getCostFunction().getForwardModels()[0].getSurvey(0)  g, chi = inv.getCostFunction().getForwardModel().getSurvey(0)
63  saveSilo(os.path.join(WORKDIR, 'gravinv'), density=rho_new, density_ref=source.getReferenceProperty(), g=g, chi=chi)  saveSilo(os.path.join(WORKDIR, 'gravinv'), density=rho_new, density_ref=source.getReferenceProperty(), g=g, chi=chi)
64    

Legend:
Removed from v.4122  
changed lines
  Added in v.4123

  ViewVC Help
Powered by ViewVC 1.1.26