[cig-commits] commit: Split run1.sh into run1.sh, run1.bat, and run1.input

Mercurial hg at geodynamics.org
Thu Dec 29 10:40:09 PST 2011


changeset:   59:fe39a74db3a4
tag:         tip
user:        Walter Landry <wlandry at caltech.edu>
date:        Thu Dec 29 10:38:47 2011 -0800
files:       examples/run1.bat examples/run1.input examples/run1.sh
description:
Split run1.sh into run1.sh, run1.bat, and run1.input


diff -r e025aa246b0a -r fe39a74db3a4 examples/run1.bat
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/run1.bat	Thu Dec 29 10:38:47 2011 -0800
@@ -0,0 +1,8 @@
+if not exist output1 mkdir output1
+
+
+set OMP_NUM_THREADS=4
+
+set GMT_SHAREDIR=%CD%\..\share
+set PROJ_LIB=%CD%\..\share
+..\relax < run1.input
diff -r e025aa246b0a -r fe39a74db3a4 examples/run1.input
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/run1.input	Thu Dec 29 10:38:47 2011 -0800
@@ -0,0 +1,69 @@
+# use '#' character to include comments in your input file
+# grid size (sx1,sx2,sx3)
+256 256 256
+# sampling size (in unit of length), smoothing (0-0.5) & nyquist (dx1,dx2,dx3,beta,nq)
+0.05 0.05 0.05 0.2 2
+# origin position & rotation
+0 0 0
+# geographic origin (longitude and latitude), UTM zone and real length unit (usually m or km)
+# displacements and stress are converted to lon/lat geographic coordinates
+# unit corresponds to a scaling from dx1,dx2,dx3 to real unit
+# use unit = 1   if dimensions are described in units of m
+# use unit = 1e3 if dimensions are described in units of km
+120 22 51 1e3
+# observation depth for displacement and for stress (stress in only exported in GRD)
+0 0.5
+# output directory (all output written here)
+output1
+# elastic parameters and gamma = (1-nu) rho g / mu = 8.33e-7 /m = 8.33e-4 /km
+1 1 8.33e-4
+# integration time (in unit of time), step (negative for automatic) and scaling of computed value
+20 -1 1
+# number of observation planes
+1
+# no x1 x2 x3 length width strike dip
+   1  0 -3  0      6     6     90  90
+# number of observation points
+0
+# number of Coulomb patches
+0
+# number of prestress interfaces
+0
+# number of linear viscous interfaces (where viscosity changes)
+2
+# no depth gammadot0 cohesion (gammadot0 is shear modulus divided by viscosity)
+   1   3.0       1.0      0.0
+   2   9.0       1.0      0.0
+# number of linear ductile zones
+0
+# number of powerlaw viscous interfaces
+0
+# number of friction faults
+0
+# number of interseismic loading strike-slip and opening
+0
+0
+# number of coseismic events (when slip distribution is prescribed)
+2
+# number of shear dislocations (strike-slip and dip-slip faulting)
+1
+# no slip x1 x2 x3 length width strike dip rake
+   1    1 -1  0  0      1     1      0  90    0
+# number of tensile cracks
+0
+# number of dilatation sources
+0
+# number of surface traction
+0
+# time of second event
+1
+# number of shear dislocations
+1
+# no slip x1 x2 x3 length width strike dip rake
+   1    1  0  0  0      1     1      0  90    0
+# number of tensile cracks
+0
+# number of dilatation sources
+0
+# number of surface traction
+0
diff -r e025aa246b0a -r fe39a74db3a4 examples/run1.sh
--- a/examples/run1.sh	Thu Dec 29 10:38:20 2011 -0800
+++ b/examples/run1.sh	Thu Dec 29 10:38:47 2011 -0800
@@ -66,74 +66,4 @@ if [ ! -e $WDIR ]; then
 	mkdir $WDIR
 fi
 
-OMP_NUM_THREADS=4 time ../relax $* <<EOF | tee $WDIR/in.param
-# use '#' character to include comments in your input file
-# grid size (sx1,sx2,sx3)
-256 256 256
-# sampling size (in unit of length), smoothing (0-0.5) & nyquist (dx1,dx2,dx3,beta,nq)
-0.05 0.05 0.05 0.2 2
-# origin position & rotation
-0 0 0
-# geographic origin (longitude and latitude), UTM zone and real length unit (usually m or km)
-# displacements and stress are converted to lon/lat geographic coordinates
-# unit corresponds to a scaling from dx1,dx2,dx3 to real unit
-# use unit = 1   if dimensions are described in units of m
-# use unit = 1e3 if dimensions are described in units of km
-120 22 51 1e3
-# observation depth for displacement and for stress (stress in only exported in GRD)
-0 0.5
-# output directory (all output written here)
-$WDIR
-# elastic parameters and gamma = (1-nu) rho g / mu = 8.33e-7 /m = 8.33e-4 /km
-1 1 8.33e-4
-# integration time (in unit of time), step (negative for automatic) and scaling of computed value
-20 -1 1
-# number of observation planes
-1
-# no x1 x2 x3 length width strike dip
-   1  0 -3  0      6     6     90  90
-# number of observation points
-0
-# number of Coulomb patches
-0
-# number of prestress interfaces
-0
-# number of linear viscous interfaces (where viscosity changes)
-2
-# no depth gammadot0 cohesion (gammadot0 is shear modulus divided by viscosity)
-   1   3.0       1.0      0.0
-   2   9.0       1.0      0.0
-# number of linear ductile zones
-0
-# number of powerlaw viscous interfaces
-0
-# number of friction faults
-0
-# number of interseismic loading strike-slip and opening
-0
-0
-# number of coseismic events (when slip distribution is prescribed)
-2
-# number of shear dislocations (strike-slip and dip-slip faulting)
-1
-# no slip x1 x2 x3 length width strike dip rake
-   1    1 -1  0  0      1     1      0  90    0
-# number of tensile cracks
-0
-# number of dilatation sources
-0
-# number of surface traction
-0
-# time of second event
-1
-# number of shear dislocations
-1
-# no slip x1 x2 x3 length width strike dip rake
-   1    1  0  0  0      1     1      0  90    0
-# number of tensile cracks
-0
-# number of dilatation sources
-0
-# number of surface traction
-0
-EOF
+OMP_NUM_THREADS=4 ../relax $* < run1.input | tee $WDIR/in.param



More information about the CIG-COMMITS mailing list