Recycle Forms


75
views
0
6 weeks ago by
Moritz  
Hi,
I have many forms which are the same just with different functions.
e.g. I doing something like this (u is a funtion of MixedElement)
for i in range(large number):
   array[i]=dolfin.assemble(u[i]*dx)​

Here for every iteration the JIT Compiler is called.
Can I compile the form once and the just replace the u[i] for the evaluation?

Best Regards,
Moritz
Community: FEniCS Project
I seperated the problem into seperate Functions instead of using MixedElements, this results in only one JIT call.
Can be closed.
written 6 weeks ago by Moritz  
Please login to add an answer/comment or follow this question.

Similar posts:
Search »