How to use adapt

6 months ago by
This is a follow-up to this question

I am trying to learn how to use "adapt" for a time-dependent problem. So I modified one of my existing BVP codes to this

This code does not run and complains at line 94. I have no clue how to fix this or even if my approach is correct, since there are no examples available in the documentation.
Community: FEniCS Project
I have fixed a mistake in adapting bc. See same gist as above. Now it fails at  solve after first adaptation
Solving linear variational problem.
Number of cells increased from 200 to 283 (41.5% increase).
Interpolate from parent to child
Traceback (most recent call last):
  File "", line 60, in <module>
    solve(a == L, u, bc)
  File "/usr/local/lib/python2.7/dist-packages/dolfin/fem/", line 310, in solve
    return cpp.la_solve(*args)
  File "/usr/local/lib/python2.7/dist-packages/dolfin/cpp/", line 4898, in la_solve
    return _la.la_solve(*args)
TypeError: in method 'la_solve', argument 1 of type 'dolfin::GenericLinearOperator const &'​
written 6 months ago by Praveen C  
Please login to add an answer/comment or follow this question.

Similar posts:
Search »