On May 6, 2011, at 10:55 AM, Julien Derr wrote:

> I was trying to run on a cluster, a program which is running fine on my 
> computer. 
> and I get the following error (see full error at the end)
> 
>     return self.distanceVar._cellInterfaceFlag * 1e+20        
> AttributeError: 'DistanceVariable' object has no attribute 
> '_cellInterfaceFlag'


> Could it be a problem of fipy version? on my computer I am using 2.2-dev
> but on the cluster it is the 2.1.1   

Definitely. The syntax on trunk/ has changed in a number of ways. Old scripts 
still work, but it's not backward-compatible. In this case, to work with FiPy 
2.1.1, replace

  return self.distanceVar._cellInterfaceFlag * 1e+20

with

  return self.distanceVar._getCellInterfaceFlag() * 1e+20



Reply via email to