Index: trunk/ippTasks/warp.pro
===================================================================
--- trunk/ippTasks/warp.pro	(revision 16022)
+++ trunk/ippTasks/warp.pro	(revision 16298)
@@ -1,3 +1,4 @@
-### This file contains panTasks definitions for performing the image warping.
+## warp.pro : image warping tasks : -*- sh -*-
+## This file contains panTasks definitions for performing the image warping.
 
 ### This is done in two (main) steps.  After a warp (with associated warp_id) is defined,
@@ -5,20 +6,6 @@
 ### Then for each skycell, the warp is made (tasks in warpPendingSkycell).
 
-
 ### Setups
-if ($?network == 0)
-  $network = 1
-end
-if ($?parallel == 0)
-  $parallel = 0
-end
-if ($?VERBOSE == 0)
-  echo "VERBOSE not defined: load pantasks.pro first"
-  break
-end
-if ($?LOGDIR == 0)
-  echo "LOGDIR not defined: load pantasks.pro first"
-  break
-end
+check.globals
 
 $LOGSUBDIR = $LOGDIR/warp
@@ -82,6 +69,6 @@
   host         local
 
-  periods      -poll $loadpoll
-  periods      -exec $loadexec
+  periods      -poll $LOADPOLL
+  periods      -exec $LOADEXEC
   periods      -timeout 30
   npending     1
@@ -136,5 +123,5 @@
     book npages warpInputExp -var N
     if ($N == 0) break
-    if ($network == 0) break
+    if ($NETWORK == 0) break
     
     # look for new images in warpInputExp (pantaskState == INIT)
@@ -150,5 +137,5 @@
     # specify choice of remote host
     # XXX need to choose based on warps
-    if ($parallel)
+    if ($PARALLEL)
       host anyhost
     else
@@ -202,6 +189,6 @@
   host         local
 
-  periods      -poll $loadpoll
-  periods      -exec $loadexec
+  periods      -poll $LOADPOLL
+  periods      -exec $LOADEXEC
   periods      -timeout 30
   npending     1
@@ -256,5 +243,5 @@
     book npages warpPendingSkyCell -var N
     if ($N == 0) break
-    if ($network == 0) break
+    if ($NETWORK == 0) break
     
     # look for new images in warpPendingSkyCell (pantaskState == INIT)
@@ -272,5 +259,5 @@
     # specify choice of remote host
     # XXX need to choose based on warps
-    if ($parallel)
+    if ($PARALLEL)
       host anyhost
     else
