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

Array is too big

–4 votes

I'm trying inverse partial differential equations using finite element methods for optimal control problem, while mesh size run up to 60*60 unit square in python coding using window FEniCS, if change mesh size as 64 or 128 error occur as array is too big. Here following error mentioned below:
File "Inverse PDE FEM.py", line 58, in
print'A:',A.array()
File "C:\FEniCS\lib\site-packages\dolfin\cpp.py", line 2957, in array
A = zeros((m_range[1] - m_range[0], self.size(1)))
ValueError: array is too big.
Thank you
Manickam

asked Sep 27, 2013 by Manickam FEniCS Novice (450 points)

This error comes from a numpy call and is not fenics related.

Hi Johanhake
I already install numpy for python 2.7. what we do so for this error.

1 Answer

+1 vote

The matrices you try to assemble do not fit your memory anymore. You need base your implementation on sparse arithmetics.

answered Sep 27, 2013 by Jan FEniCS User (8,290 points)
edited Sep 27, 2013 by Jan
...