/[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 4032 by gross, Wed Oct 24 08:06:15 2012 UTC revision 4050 by caltinay, Wed Oct 31 01:01:24 2012 UTC
# Line 43  handler=logging.StreamHandler() Line 43  handler=logging.StreamHandler()
43  handler.setLevel(logging.INFO)  handler.setLevel(logging.INFO)
44  logger.addHandler(handler)  logger.addHandler(handler)
45  source=SyntheticDataSource(DIM=2, NE=20, l=500*U.km, h=60*U.km, features=features)  source=SyntheticDataSource(DIM=2, NE=20, l=500*U.km, h=60*U.km, features=features)
46  source.setPadding(5, 5)  source.setPadding(5)
47    
48  inv=GravityInversion()  inv=GravityInversion()
49  inv.setSolverTolerance(1e-5)  inv.setSolverTolerance(1e-5)
50  inv.setSolverMaxIterations(100)  inv.setSolverMaxIterations(100)
51  inv.setSolverOptions(initialHessian=100)  inv.setSolverOptions(initialHessian=100)
52  inv.setup(source)  inv.setup(source)
53    
54  rho_new=inv.run()  rho_new=inv.run()
55    

Legend:
Removed from v.4032  
changed lines
  Added in v.4050

  ViewVC Help
Powered by ViewVC 1.1.26