Picard vs Newton: "Form is empty. Cannot pass to JIT compiler
I am hoping for some clarification regarding a somewhat weird issue. The following works:
problem_
problem = Problem(mesh, problem_parameters)
# Set up first PDESystem
solver_
default=
solver_
solver_
solver_
solver_
GloalFormulation = PDESystem([['u', 'p']], problem, solver_parameters)
class DarcyGlobal(
def form(self, u, u_, v_u, p, v_p, **kwargs):
F = inner(u,v_u)*dx - 0.1*inner(p, div(v_u))*dx + inner(div(
return F
However if I change the iteration_type to Picard, I get the following error:
"RuntimeError: Form is empty. Cannot pass to JIT compiler."
The full trace is below:
Traceback (most recent call last):
File "/home/
problem.solve()
File "/home/
%(self.
File "<string>", line 1, in <module>
File "/home/
logging=False)
File "/home/
logging=
File "/home/
assemble_
File "/home/
res, dx = solve(assemble_A, assemble_b)
File "/home/
if assemble_b: self.assemble(
File "/home/
exterior_
File "/home/
common_
File "/home/
common_cell)
File "/home/
return local_jit(*args, **kwargs)
File "/home/
raise RuntimeError, "Form is empty. Cannot pass to JIT compiler."
RuntimeError: Form is empty. Cannot pass to JIT compiler.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- CBC.PDESys Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Yaakoub El Khamra
- Solved:
- Last query:
- Last reply: