I got to work on your suggestion, but sadly got stuck on the following error
that occurs when I import myngspy that I build from the code of "mylittlengsolve":
Code:
ImportError: generic_type: type "MyCoefficient" referenced unknown base type "ngfem::CoefficientFunction"
I modified the example to only implement the MyCoefficient class, so my myngspy.cpp file is slightly different (attached), but that shouldn't be the problem as far as I understand.
After some digging I suspect that it is related to the pybind-export code for CoefficientFunction not
being executed before my import, but I can't figure out how I enforce this.
Do you have any suggestions?
Thank you very much
Philipp