I used the solution of a problem to be an input of another problem.
When I tried with an exact solution (a CoefficientFunction), the code worked well.
When I tried with an computed solution (a GridFunctioN), there is an error as follows.
NgException: GridFunctionCoefficientFunction: SIMD: don't know how I shall evaluatein Assemble BilinearForm 'biform_from_py'
The error was disappeared when I deleted line 248 (But I need this line in the discrete formulation.):
a += (u*n)*wbar.Trace()*cbar.Trace()*ds
So I guess the error maybe come from u.
Please see the attached file for details.
Can I convert a gridfunction to a similar form of a coefficient function? Could you please tell me how to fix that error?
Thank you so much.
Attachment: Untitled22.ipynb