Skip to content

Commit

Permalink
Make Python scripts in examples executable.
Browse files Browse the repository at this point in the history
  • Loading branch information
baagaard-usgs committed Jun 16, 2016
1 parent 872c0a2 commit 2041283
Show file tree
Hide file tree
Showing 15 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions examples/2d/gravity/plot_soln.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python

import h5py
import numpy

Expand Down
2 changes: 1 addition & 1 deletion examples/2d/greensfns/README
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Step 4. Plot the true and predicted slip values (**requires matplotlib**).
forward simulation. If you have matplotlib installed, you can run
this script by typing:

plot_invresults.py --solution=output/eqsim-fault.h5 --predicted=output/slip_inverted.txt
./plot_invresults.py --solution=output/eqsim-fault.h5 --predicted=output/slip_inverted.txt

This will display a matplotlib window with the true solution in
black and the predicted solution corresponding to different values
Expand Down
Empty file modified examples/2d/greensfns/invert_slip.py
100644 → 100755
Empty file.
Empty file modified examples/2d/greensfns/reverse/plot_invresults.py
100644 → 100755
Empty file.
Empty file modified examples/2d/greensfns/strikeslip/plot_invresults.py
100644 → 100755
Empty file.
2 changes: 2 additions & 0 deletions examples/2d/subduction/afterslip_tractions.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python

# This python script extracts the changes in fault tractions from
# step01 and combines them with background depth-dependent fault
# tractions to create initial fault tractions to drive frictional
Expand Down
Empty file modified examples/2d/subduction/plot_faultinfo.py
100644 → 100755
Empty file.
2 changes: 2 additions & 0 deletions examples/bar_shearwave/quad4/analytical_soln.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python

# Compute the analytical steady-state solution.
#
# The shear traction on the fault is balanced by the shear traction
Expand Down
Empty file modified examples/meshing/cubit_cellsize/exodus_add_properties.py
100644 → 100755
Empty file.
Empty file modified examples/meshing/surface_nurbs/dem/dem2lines.py
100644 → 100755
Empty file.
Empty file modified examples/meshing/surface_nurbs/subduction/interface_netsurf.py
100644 → 100755
Empty file.
Empty file modified examples/meshing/surface_nurbs/subduction/splay_skinsurf.py
100644 → 100755
Empty file.
Empty file modified examples/meshing/surface_nurbs/subduction/topobath_netsurf.py
100644 → 100755
Empty file.
Empty file modified examples/meshing/surface_nurbs/triangles/mkfacets.py
100644 → 100755
Empty file.
Empty file modified examples/run_examples.py
100644 → 100755
Empty file.

0 comments on commit 2041283

Please sign in to comment.