I need to solve a linear system with multiple right-hand sides, e.g.,
b_list = []
for f in f_list:
L = f * v * dx
b_list.append(assemble(L))
and a substantial share of the "computation" is taken by the JIT compiler at assemble()
. Is there a way to speed this up, by, e.g., compiling all b
s at once?