This functionality is only implemented for 2D meshes. It looks like you
are trying a 3D mesh.

Johan

On 04/16/2013 09:04 PM, Gennadiy Rishkin wrote:
> Hello
> 
> DOLFIN is compiled with CGAL and I can run the distance_queries demo
> with no problems but when I do this:
> 
>     for (VertexIterator vertex(mesh); !vertex.end(); ++vertex) {
>         xy = new Array<double>(dim, geometry.x(vertex->index()));
>        
>         x =  (*xy)[0];
>         y =  (*xy)[1];
>         z =  (*xy)[2];
> 
>         closest_point = mesh.closest_point(Point( x, y, z));
>     }
> 
> I get this error:
> 
> terminate called after throwing an instance of 'std::runtime_error'
>   what(): 
> 
> ***
> -------------------------------------------------------------------------
> *** DOLFIN encountered an error. If you are not able to resolve this issue
> *** using the information listed below, you can ask for help at
> ***
> ***     https://answers.launchpad.net/dolfin
> ***
> *** Remember to include the error message listed below and, if possible,
> *** include a *minimal* running example to reproduce the error.
> ***
> ***
> -------------------------------------------------------------------------
> *** Error:   Unable to perform call to DOLFIN function.
> *** Reason:  The function compute has not been implemented (in
> /home/rishi/dolfin-1.2.0/dolfin/intersection/IntersectionOperatorImplementation.h
> line 262).
> *** Where:   This error was encountered inside log.h.
> *** Process: 0
> ***
> -------------------------------------------------------------------------
> 
> This seems strange to since I can run the compile and run the
> distance)queries demo.
> 
> Thanks in advance,
> 
> Gennadiy
> 
> 
> 
> _______________________________________________
> 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