/[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 4073 by caltinay, Fri Nov 9 03:50:19 2012 UTC revision 4074 by gross, Thu Nov 15 03:30:59 2012 UTC
# Line 40  features=[SmoothAnomaly(lx=30*U.km, ly=2 Line 40  features=[SmoothAnomaly(lx=30*U.km, ly=2
40       x=68*U.km, y=3*U.km, depth=5*U.km, v_inner=200., v_outer=1e-6)]       x=68*U.km, y=3*U.km, depth=5*U.km, v_inner=200., v_outer=1e-6)]
41    
42  logger=logging.getLogger('inv')  logger=logging.getLogger('inv')
43  logger.setLevel(logging.INFO)  logger.setLevel(logging.DEBUG)
44  handler=logging.StreamHandler()  handler=logging.StreamHandler()
45  handler.setLevel(logging.INFO)  handler.setLevel(logging.INFO)
46  logger.addHandler(handler)  logger.addHandler(handler)
# Line 54  inv=GravityInversion() Line 54  inv=GravityInversion()
54  inv.setSolverTolerance(1e-9)  inv.setSolverTolerance(1e-9)
55  inv.setSolverMaxIterations(100)  inv.setSolverMaxIterations(100)
56  inv.setSolverOptions(initialHessian=10)  inv.setSolverOptions(initialHessian=10)
57  inv.setWeights(mu_reg=1e-5)  inv.setWeights(mu_reg=1e-5*0+1.)
58  inv.setup(domainbuilder)  inv.setup(domainbuilder)
59    
60  rho_new=inv.run()  rho_new=inv.run()

Legend:
Removed from v.4073  
changed lines
  Added in v.4074

  ViewVC Help
Powered by ViewVC 1.1.26