Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Condor-users] Error evaluating rank
- Date: Thu, 25 Oct 2007 16:48:01 -0500
- From: Daniel Forrest <forrest@xxxxxxxxxxxxx>
- Subject: Re: [Condor-users] Error evaluating rank
Bryan K. Wright wrote:
> Hi folks,
>
> The answer was a missing pair of parentheses. I had expressions like:
>
> OWNERBOOST = Owner == "user1" || Owner == "user2"
> RANK = 10*( 2*OWNERBOOST - 1 ) - LoadAvg + 20
>
> but it really should have been:
>
> OWNERBOOST = (Owner == "user1" || Owner == "user2")
> RANK = 10*( 2*OWNERBOOST - 1 ) - LoadAvg + 20
Almost, but not quite. It needs to be:
RANK = 10*( 2*$(OWNERBOOST) - 1 ) - LoadAvg + 20
Note the "$(...)" around "OWNERBOOST".
> As Alan De Smet pointed out in "Administrating Condor", if you have
> expresions like:
>
> TEN = 5+5
> HUNDRED = $(TEN)*$(TEN)
>
> then the value of HUNDRED will be 5+5*5+5 or 35. To get it to be 100,
> you need parentheses around the (5+5).
And (as shown) you need to have "$(...)" around the "TEN"s.
--
Daniel K. Forrest Laboratory for Molecular and
forrest@xxxxxxxxxxxxx Computational Genomics
(608) 262 - 9479 University of Wisconsin, Madison