Index: trunk/ippTasks/detrend.resid.pro
===================================================================
--- trunk/ippTasks/detrend.resid.pro	(revision 14693)
+++ trunk/ippTasks/detrend.resid.pro	(revision 16173)
@@ -147,10 +147,6 @@
     book getword detPendingResidImfile $pageName reduction -var REDUCTION
 
-    # specify choice of remote host:
-    if ($parallel)
-      host anyhost
-    else
-      host local
-    end
+    # specify choice of local or remote host based on camera and chip (class_id)
+    set.host.for.camera $camera $class_id
 
     # XXX use ipp_filename.pl to lookup output file names
@@ -279,10 +275,6 @@
     book getword detPendingResidExp $pageName dbname    -var DBNAME
 
-    # specify choice of remote host:
-    if ($parallel)
-      host anyhost
-    else
-      host local
-    end
+    # specify choice of local or remote host based on camera and chip (class_id)
+    set.host.for.camera $camera FPA
 
     # XXX use ipp_filename.pl to lookup output file names
