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

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

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

revision 4121 by gross, Fri Dec 14 04:48:48 2012 UTC revision 4122 by gross, Thu Dec 20 05:42:35 2012 UTC
# Line 58  inv.setSolverTolerance(1e-4) Line 58  inv.setSolverTolerance(1e-4)
58  inv.setSolverMaxIterations(10)  inv.setSolverMaxIterations(10)
59  inv.setup(domainbuilder)  inv.setup(domainbuilder)
60  k_new = inv.run()  k_new = inv.run()
61  B, chi = inv.getForwardModel().getSurvey(0)  B, chi = inv.getCostFunction().getForwardModels()[0].getSurvey(0)
62  saveSilo(os.path.join(WORKDIR, 'maginv'), sus=k_new, sus_ref=source.getReferenceProperty(), B=B, chi=chi)  saveSilo(os.path.join(WORKDIR, 'maginv'), sus=k_new, sus_ref=source.getReferenceProperty(), B=B, chi=chi)
63    

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

  ViewVC Help
Powered by ViewVC 1.1.26