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

Automated error control for time dependent non linear pde.

+2 votes

The solver part of the code looks like this.

problem = NonlinearVariationalProblem(L, u_, bcs, J)
solver = NonlinearVariationalSolver(problem)
while (t < T):
    t += dt
    u0_.vector()[:] = u_.vector()  # u0_ is solution at previous step
    solver.solve() 

At each time step, I wish to solve the equations adaptively. NonlinearVariationalSolver, solve() don't seem to accept tol, M as keyword arguments.

asked Dec 10, 2013 by bshankar FEniCS Novice (790 points)

1 Answer

+2 votes
 
Best answer
answered Dec 12, 2013 by Jan Blechta FEniCS Expert (51,420 points)
selected Dec 12, 2013 by bshankar

Thank you!
exactly what I was looking for ...

...