[Swift-commit] r8153 - demo/xsede.2014.0425/app

yadunandb at ci.uchicago.edu yadunandb at ci.uchicago.edu
Wed Aug 13 16:47:24 CDT 2014


Author: yadunandb
Date: 2014-08-13 16:47:23 -0500 (Wed, 13 Aug 2014)
New Revision: 8153

Modified:
   demo/xsede.2014.0425/app/renderframe
Log:
find c-ray in CWD instead of PATH

Modified: demo/xsede.2014.0425/app/renderframe
===================================================================
--- demo/xsede.2014.0425/app/renderframe	2014-08-13 21:33:03 UTC (rev 8152)
+++ demo/xsede.2014.0425/app/renderframe	2014-08-13 21:47:23 UTC (rev 8153)
@@ -4,6 +4,8 @@
 vzout=$2
 frame=$3
 
+APPDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+
 cat <<END >c-ray-trailer
 # walls
 s	0 -1000 2		99		0.2 0.2 0.2			0.0	0.0
@@ -20,7 +22,7 @@
   awk "\$1 == $frame {for (i=2; i<NF; i++) printf \$i \" \"; print \$NF}" <$mdtrj | sed -e 's/^[0-9]\+ //' 
 
   cat c-ray-trailer
-) | c-ray >t.ppm
+) | $APPDIR/c-ray >t.ppm
 
 convert t.ppm $vzout 
 




More information about the Swift-commit mailing list