PETSC Error in generate_mesh


241
views
0
6 months ago by
I had this piece of code, which used to work, but recently when I wanted to run it again it didn't anymore.

I have identified the error to happen when running the generate_mesh function. It seems to be a general thing for my installation, which has broken somehow. A simple code snippet like the one below breaks:

from dolfin import *
from mshr import *

R = Rectangle(Point(0,0),Point(1,1))

mesh = generate_mesh(R,10)​
It throws the following tantrum
[0]PETSC ERROR: ------------------------------------------------------------------------
[0]PETSC ERROR: Caught signal number 11 SEGV: Segmentation Violation, probably memory access out of range
[0]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger
[0]PETSC ERROR: or see http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind                                                                       
[0]PETSC ERROR: or try http://valgrind.org on GNU/linux and Apple Mac OS X to find memory corruption errors
[0]PETSC ERROR: configure using --with-debugging=yes, recompile, link, and run
[0]PETSC ERROR: to get more information on the crash.
--------------------------------------------------------------------------
MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLD
with errorcode 59.

NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes, depending on
exactly when Open MPI kills them.
-------------------------------------------------------------------------- ​

Any idea what could be causing this?

Community: FEniCS Project
domain is not defined in your example.
written 6 months ago by Lukas O.  
My bad, there was previously a line: domain = R, which I had removed, when I copied the code here. Forgot to change the domain variable to R in generate_mesh()
written 6 months ago by Bjørn Jensen  
Please login to add an answer/comment or follow this question.

Similar posts:
Search »