2014-07-02 12:40 GMT+02:00 Marco Morandini <[email protected]>:
> I tried to build mshr from git.
>
> I had to modify CMakeCache:
>
> 1) my Vtk is installed in a non-standard location
> 2) it was not finding numpy's headers
> 2) it was selecting python 3 and not python 2, and then
> complaining because no definition of PyInt_FromSsize_t
> was provided.
>
> Patch attached. The numpy detection script is copied verbatim from Dolfin's
> sources.

Great! Thanks.

>
>
> After that, the compilation is ok, but the demos do not work.
>
> Some of them because the number of arguments of the init functions is wrong
> (e.g. simple-csg-3D.py:
>     TypeError: new_Box expected 2 arguments, got 6

Yes, I'm doing some cleanup now to prepare for release and one thing
is to change the function signature so that they take dolfin::Points
as argument where this is appropriate (as opposed to three doubles).
The demos haven't been updated yet. I will do this very soon.

> )
>
> others because of CGAL (e.g. icecream.py):
>
> -----------
> marco@pao:~/Programmi/Dolphin/src_from_dorsal/mshr/demo/python (master>)>
> python icecream.py
> Convert to nef polyhedron
> Number of vertices: 826
> Number of facets: 1648
> Cleaning degenerate facets
>   Collapsing short edges
>   Removing colinear facets by edge flipping
> Writing to file: icecream.off
> Convert to nef polyhedron
> Number of vertices: 826
> Number of facets: 1648
> Cleaning degenerate facets
>   Collapsing short edges
>   Removing colinear facets by edge flipping
> Traceback (most recent call last):
>   File "icecream.py", line 41, in <module>
>     m = generate_mesh(geometry, 16, "cgal")
>   File "/home/marco/local/Fenics/lib64/python2.7/site-packages/mshr.py",
> line 458, in generate_mesh
>     _generate(m, geometry, resolution, backend)
> StandardError: CGAL ERROR: assertion violation!
> Expr: check_protocoll == 2
> File:
> /home/marco/Programmi/Dolphin/src_from_dorsal/mshr/dorsal_build_dir/CGAL-4.4-installdir/include/CGAL/Polyhedron_incremental_builder_3.h
> Line: 286
> -------------
>
> Any hint?

I will take a look at this. We had some indications that this
particular demo hits a bug in CGAL, but I haven't had time to look
closer at this yet.

Benjamin

>
> Thanks in advance,
>
> Marco
>
> _______________________________________________
> fenics mailing list
> [email protected]
> http://fenicsproject.org/mailman/listinfo/fenics
>
_______________________________________________
fenics mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics

Reply via email to