/[escript]/trunk/doc/examples/inversion/gravmag_netcdf.py
ViewVC logotype

Diff of /trunk/doc/examples/inversion/gravmag_netcdf.py

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

revision 4177 by azadeh, Thu Jan 31 02:23:02 2013 UTC revision 4209 by caltinay, Mon Feb 18 06:00:56 2013 UTC
# Line 71  print("density = %s"%density) Line 71  print("density = %s"%density)
71  print("susceptibility = %s"%susceptibility)  print("susceptibility = %s"%susceptibility)
72    
73  # Save results  # Save results
74  g, wg =  inv.getCostFunction().getForwardModel().getSurvey(0)  g, wg =  inv.getCostFunction().getForwardModel(0).getSurvey()
75  B, wB =  inv.getCostFunction().getForwardModel().getSurvey(1)  B, wB =  inv.getCostFunction().getForwardModel(1).getSurvey()
76  saveSilo("result_gravmag.silo", density=density, gravity_anomaly=g[2], gravity_weight=wg[2], susceptibility=susceptibility, magnetic_anomaly=B[2], magnetic_weight=wB[2])  saveSilo("result_gravmag.silo", density=density, gravity_anomaly=g[2], gravity_weight=wg[2], susceptibility=susceptibility, magnetic_anomaly=B[2], magnetic_weight=wB[2])
77  print("Results saved in result_gravmag.silo. Good bye.")  print("Results saved in result_gravmag.silo. Good bye.")
78    

Legend:
Removed from v.4177  
changed lines
  Added in v.4209

  ViewVC Help
Powered by ViewVC 1.1.26