← Back to team overview

dolfin team mailing list archive

Re: Outdated mesh format in some PyDolfin demos?

 

Thanks for the bug reports.

Johan, will you fix this before the release?

/Anders


On Wed, Nov 29, 2006 at 07:16:51PM -0500, Robert Pickle wrote:
> Hi, I've been playing around with dolfin for a week or so now and love 
> it, but have been having problems with some pydolfin demos.
> 
> Here is the error I get:
> 
> ---------------
> Reading mesh from file tetmesh-4.xml.gz.
> *** Error: Missing attribute "celltype" for <mesh> in XML file. 
> [XMLObject.cpp:125: parseString()]
> ----------------
> 
> This particular error occurs when i run elasticitysolver.py in the 
> /src/demo/scripting/pydolfin/solvers/elasticity directory. I receive 
> nearly identical errors when trying out any other demo featuring 
> tetmesh-4.xml.gz,
> 
> cow05b.xml.gz and cow05c.xml.gz when running test.sh in 
> /src/demo/scripting/pydolfin,
> 
> and possibly some others I'm forgetting.
> 
> ***Note, tetmesh-4.xml.gz seems to work in the directory 
> /src/demo/scripting/pydolfin/solvers/elasticity-tpde/manual *** I COULD 
> just copy it over, but that's not the point :-)
> 
> Unrelated, here are some other errors I'm getting:
> 
> -------
> robert@gc164-robert:~/dolfin_dev/src/demo/scripting/pydolfin/projection$ 
> python projectiondemo.py
> 
> Compiling form: MyElement.form
> Generating the SWIG interface file for the MyElement module
> Traceback (most recent call last):
>    File "projectiondemo.py", line 19, in ?
>      Pforms = projection(K, "Projection")
>    File "/usr/local/lib/python2.4/site-packages/dolfin/projection.py", 
> line 13, in projection
>      a = dot(v, U) * dx
> TypeError: unsupported operand type(s) for *: 'NoneType' and 'instance'
> --------
> robert@gc164-robert:~/dolfin_dev/src/demo/scripting/pydolfin/solvers/elasticity-tpde/composite$ 
> python elasticitysolver.py
> 
> Generating the SWIG interface file for the Coefficients module
> Traceback (most recent call last):
>    File "/usr/local/bin/dolfin-swig", line 119, in ?
>      interfacefile = open("%s_wrap.cpp" % modulename)
> IOError: [Errno 2] No such file or directory: 'coefficients_wrap.cpp'
> Traceback (most recent call last):
>    File "elasticitysolver.py", line 32, in ?
>      coeffs = import_header("Coefficients.h")
>    File "/usr/local/lib/python2.4/site-packages/dolfin/import_form.py", 
> line 46, in import_header
>      return __import__(modulename)
> ImportError: No module named coefficients
> -----------
> 
> I am running a freshly downloaded hg cloned (as of this morning, 
> 29/11/2006) compiled with PETSc 2.3.1 enabled.
> 
> Thanks and keep up the good work!
> 
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/dolfin-dev


Follow ups

References