This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Unable to perform just-in-time compilation of form due to maximum recursion depth exceeded

0 votes

Hello,

I'm getting the following error:

*** Error: Unable to perform just-in-time compilation of form.
*** Reason: ffc.jit failed with message:
...
RuntimeError: maximum recursion depth exceeded
*** Where: This error was encountered inside jit.py.
*** Process: 0


*** DOLFIN version: 2016.2.0
...

I'm solving a system of non-linear equations (>80 equations) similar to https://fenicsproject.org/olddocs/dolfin/2016.2.0/python/demo/documented/stokes-iterative/python/documentation.html

The problem is when I call the function assemble_system before solving the system. I tested with a smaller number of equations and it works fine. So, the problem is indeed the number of equations and that the 'maximum recursion depth exceeded'...

Anyone has some suggestion?

Thanks in advance!

asked Jun 7, 2017 by lhdamiani FEniCS User (2,580 points)

My machine: Intel® Xeon(R) CPU E5640 @ 2.67GHz × 16 64-bit, , Memory 23.5GiB, Disk 103.2 GB

So, after searching it a bit...

https://searchcode.com/codesearch/view/56353020/

With this script, I ran it and increased my recursion depth from 1000 (default) to 16200 (according to my architecture).

But I still get a jit error. The error I get now is the following:

IndexError: list assignment index out of range

Any help appreciated.

Thanks!

How do you assemble (define) mixed function space? Please provide some minimal runnable example.

...