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

Diff of /trunk/downunder/test/python/run_magnetic2D.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 78  inv.getCostFunction().setTradeOffFactors Line 78  inv.getCostFunction().setTradeOffFactors
78  k_new=inv.run()  k_new=inv.run()
79  print "k_new = ",k_new  print "k_new = ",k_new
80  print "k =", source.getReferenceProperty()  print "k =", source.getReferenceProperty()
81  B, chi = inv.getCostFunction().getForwardModels()[0].getSurvey(0)  B, chi = inv.getCostFunction().getForwardModel().getSurvey(0)
82  saveSilo(os.path.join(WORKDIR, 'maginv'), k=k_new, k_ref=source.getReferenceProperty(), B=B, chi=chi)  saveSilo(os.path.join(WORKDIR, 'maginv'), k=k_new, k_ref=source.getReferenceProperty(), B=B, chi=chi)
83    

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

  ViewVC Help
Powered by ViewVC 1.1.26