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

Precompiling forms for use in Python code

+1 vote

Hi Everyone, Instead of using the JIT compiler in a FEniCS python code, is there a way of defining the forms to be used in a separate file, compiling them ahead of time, and then using the compiled forms in a Python code? I'm using dolfin-adjoint so a C++ version of my code is not an option. JIT is fine except I want to run the code on a Cray machine and I don't want it to be compiling forms while it runs in parallel.

It seems like there might be a way to use Instant to do this but I'm not sure. Has anyone tried it?

Thanks,
Dave

asked Sep 7, 2016 by david.bernstein FEniCS User (2,000 points)
...