From 20412838de6d4f011c982a68b9630e1c3c44e47a Mon Sep 17 00:00:00 2001 From: Brad Aagaard Date: Thu, 16 Jun 2016 10:32:07 -0700 Subject: [PATCH] Make Python scripts in examples executable. --- examples/2d/gravity/plot_soln.py | 2 ++ examples/2d/greensfns/README | 2 +- examples/2d/greensfns/invert_slip.py | 0 examples/2d/greensfns/reverse/plot_invresults.py | 0 examples/2d/greensfns/strikeslip/plot_invresults.py | 0 examples/2d/subduction/afterslip_tractions.py | 2 ++ examples/2d/subduction/plot_faultinfo.py | 0 examples/bar_shearwave/quad4/analytical_soln.py | 2 ++ examples/meshing/cubit_cellsize/exodus_add_properties.py | 0 examples/meshing/surface_nurbs/dem/dem2lines.py | 0 examples/meshing/surface_nurbs/subduction/interface_netsurf.py | 0 examples/meshing/surface_nurbs/subduction/splay_skinsurf.py | 0 examples/meshing/surface_nurbs/subduction/topobath_netsurf.py | 0 examples/meshing/surface_nurbs/triangles/mkfacets.py | 0 examples/run_examples.py | 0 15 files changed, 7 insertions(+), 1 deletion(-) mode change 100644 => 100755 examples/2d/gravity/plot_soln.py mode change 100644 => 100755 examples/2d/greensfns/invert_slip.py mode change 100644 => 100755 examples/2d/greensfns/reverse/plot_invresults.py mode change 100644 => 100755 examples/2d/greensfns/strikeslip/plot_invresults.py mode change 100644 => 100755 examples/2d/subduction/afterslip_tractions.py mode change 100644 => 100755 examples/2d/subduction/plot_faultinfo.py mode change 100644 => 100755 examples/bar_shearwave/quad4/analytical_soln.py mode change 100644 => 100755 examples/meshing/cubit_cellsize/exodus_add_properties.py mode change 100644 => 100755 examples/meshing/surface_nurbs/dem/dem2lines.py mode change 100644 => 100755 examples/meshing/surface_nurbs/subduction/interface_netsurf.py mode change 100644 => 100755 examples/meshing/surface_nurbs/subduction/splay_skinsurf.py mode change 100644 => 100755 examples/meshing/surface_nurbs/subduction/topobath_netsurf.py mode change 100644 => 100755 examples/meshing/surface_nurbs/triangles/mkfacets.py mode change 100644 => 100755 examples/run_examples.py diff --git a/examples/2d/gravity/plot_soln.py b/examples/2d/gravity/plot_soln.py old mode 100644 new mode 100755 index 10f2f0b425..e4bf2ec8a8 --- a/examples/2d/gravity/plot_soln.py +++ b/examples/2d/gravity/plot_soln.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python + import h5py import numpy diff --git a/examples/2d/greensfns/README b/examples/2d/greensfns/README index 2683c52aef..7daf4c4b37 100644 --- a/examples/2d/greensfns/README +++ b/examples/2d/greensfns/README @@ -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 diff --git a/examples/2d/greensfns/invert_slip.py b/examples/2d/greensfns/invert_slip.py old mode 100644 new mode 100755 diff --git a/examples/2d/greensfns/reverse/plot_invresults.py b/examples/2d/greensfns/reverse/plot_invresults.py old mode 100644 new mode 100755 diff --git a/examples/2d/greensfns/strikeslip/plot_invresults.py b/examples/2d/greensfns/strikeslip/plot_invresults.py old mode 100644 new mode 100755 diff --git a/examples/2d/subduction/afterslip_tractions.py b/examples/2d/subduction/afterslip_tractions.py old mode 100644 new mode 100755 index 6f08d8fc30..0df996f1c4 --- a/examples/2d/subduction/afterslip_tractions.py +++ b/examples/2d/subduction/afterslip_tractions.py @@ -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 diff --git a/examples/2d/subduction/plot_faultinfo.py b/examples/2d/subduction/plot_faultinfo.py old mode 100644 new mode 100755 diff --git a/examples/bar_shearwave/quad4/analytical_soln.py b/examples/bar_shearwave/quad4/analytical_soln.py old mode 100644 new mode 100755 index e3d94280c5..a914770ef2 --- a/examples/bar_shearwave/quad4/analytical_soln.py +++ b/examples/bar_shearwave/quad4/analytical_soln.py @@ -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 diff --git a/examples/meshing/cubit_cellsize/exodus_add_properties.py b/examples/meshing/cubit_cellsize/exodus_add_properties.py old mode 100644 new mode 100755 diff --git a/examples/meshing/surface_nurbs/dem/dem2lines.py b/examples/meshing/surface_nurbs/dem/dem2lines.py old mode 100644 new mode 100755 diff --git a/examples/meshing/surface_nurbs/subduction/interface_netsurf.py b/examples/meshing/surface_nurbs/subduction/interface_netsurf.py old mode 100644 new mode 100755 diff --git a/examples/meshing/surface_nurbs/subduction/splay_skinsurf.py b/examples/meshing/surface_nurbs/subduction/splay_skinsurf.py old mode 100644 new mode 100755 diff --git a/examples/meshing/surface_nurbs/subduction/topobath_netsurf.py b/examples/meshing/surface_nurbs/subduction/topobath_netsurf.py old mode 100644 new mode 100755 diff --git a/examples/meshing/surface_nurbs/triangles/mkfacets.py b/examples/meshing/surface_nurbs/triangles/mkfacets.py old mode 100644 new mode 100755 diff --git a/examples/run_examples.py b/examples/run_examples.py old mode 100644 new mode 100755