Hi Everyone,

I am restarting an old question . I remind you, 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'

Daniel suggested that I need to have gmsh properly installed on the cluster.
I checked it, I can run gmsh without problem, and still get the error

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
(>>> print fipy.__version__
2.1.1
)


do you have any ideas ?

 Julien





FULL ERROR :


/n/sw/Python-2.6.2/lib/python2.6/site-packages/FiPy-2.1.1-py2.6.egg/fipy/solvers/pysparse/linearLUSolver.py:84:
DeprecationWarning: Call to deprecated method 'factorize'. Use
pysparse.direct.superlu.factorize instead.
  LU = superlu.factorize(L._getMatrix().to_csr())
Traceback (most recent call last):
  File "levelset.py", line 207, in <module>
    ceq.solve(var=c, dt=dt,boundaryConditions=BCs)
  File
"/n/sw/Python-2.6.2/lib/python2.6/site-packages/FiPy-2.1.1-py2.6.egg/fipy/terms/term.py",
line 129, in solve
    solver = self._prepareLinearSystem(var, solver, boundaryConditions, dt)
  File
"/n/sw/Python-2.6.2/lib/python2.6/site-packages/FiPy-2.1.1-py2.6.egg/fipy/terms/term.py",
line 111, in _prepareLinearSystem
    self.__buildMatrix(var, solver, boundaryConditions, dt)
  File
"/n/sw/Python-2.6.2/lib/python2.6/site-packages/FiPy-2.1.1-py2.6.egg/fipy/terms/term.py",
line 98, in __buildMatrix
    matrix, RHSvector = self._buildMatrix(var, solver._getMatrixClass(),
boundaryConditions, dt)
  File
"/n/sw/Python-2.6.2/lib/python2.6/site-packages/FiPy-2.1.1-py2.6.egg/fipy/terms/equation.py",
line 94, in _buildMatrix
    dt, self)
  File
"/n/sw/Python-2.6.2/lib/python2.6/site-packages/FiPy-2.1.1-py2.6.egg/fipy/terms/cellTerm.py",
line 135, in _buildMatrix
    coeffVectors = self._getCoeffVectors(var=var)
  File
"/n/sw/Python-2.6.2/lib/python2.6/site-packages/FiPy-2.1.1-py2.6.egg/fipy/terms/cellTerm.py",
line 85, in _getCoeffVectors
    self._calcCoeffVectors(var=var)
  File
"/n/sw/Python-2.6.2/lib/python2.6/site-packages/FiPy-2.1.1-py2.6.egg/fipy/terms/implicitSourceTerm.py",
line 70, in _calcCoeffVectors
    coeff = self._getGeomCoeff(var.getMesh())
  File
"/n/sw/Python-2.6.2/lib/python2.6/site-packages/FiPy-2.1.1-py2.6.egg/fipy/terms/term.py",
line 430, in _getGeomCoeff
    self.geomCoeff = self._calcGeomCoeff(mesh)
  File
"/n/sw/Python-2.6.2/lib/python2.6/site-packages/FiPy-2.1.1-py2.6.egg/fipy/terms/sourceTerm.py",
line 49, in _calcGeomCoeff
    return self.coeff * mesh.getCellVolumes()
  File
"/n/sw/Python-2.6.2/lib/python2.6/site-packages/FiPy-2.1.1-py2.6.egg/fipy/variables/variable.py",
line 940, in __mul__
    return self._BinaryOperatorVariable(lambda a,b: a*b, other)
  File
"/n/sw/Python-2.6.2/lib/python2.6/site-packages/FiPy-2.1.1-py2.6.egg/fipy/variables/variable.py",
line 905, in _BinaryOperatorVariable
    if not v.getUnit().isDimensionless():
  File
"/n/sw/Python-2.6.2/lib/python2.6/site-packages/FiPy-2.1.1-py2.6.egg/fipy/variables/variable.py",
line 244, in getUnit
    return self._extractUnit(self.getValue())
  File
"/n/sw/Python-2.6.2/lib/python2.6/site-packages/FiPy-2.1.1-py2.6.egg/fipy/variables/variable.py",
line 471, in getValue
    value = self._calcValue()
  File "levelset.py", line 65, in _calcValue
    return self.distanceVar._cellInterfaceFlag * 1e+20
AttributeError: 'DistanceVariable' object has no attribute
'_cellInterfaceFlag'




On Fri, Apr 1, 2011 at 4:33 PM, Daniel Wheeler <[email protected]>wrote:

>
> On Fri, Apr 1, 2011 at 5:57 AM, Julien Derr <[email protected]> wrote:
> > by test suite, which test do you mean ?
> > i went on the "different computer" (a cluster)
>
> I just mean running "python setup.py test" in the base fipy directory.
> If you have an installed only version of FiPy then you obviously can't
> do this.
>
> > I went into the installation directory, in models/levelset, and I run the
> > test.py file , here is the result :
>
> That's good.
>
> > .sh: gmsh: command not found
>
> You just need to install gmsh. See <http://www.geuz.org/gmsh/>. You
> need to be able to type
>
>   $ gmsh
>
> at the command line and have it launch. That should be enough. The
> examples you were running all use gmsh for creating their meshes.
>
> --
> Daniel Wheeler
>
>

Reply via email to