# Conversion of complex ufl.algebra to fem.function

**URL:** <https://fenicsproject.discourse.group/t/conversion-of-complex-ufl-algebra-to-fem-function/8292>\
**Category:** variational formulation\
**Created:** [May 12, 2022, 11:07am UTC](https://fenicsproject.discourse.group/t/conversion-of-complex-ufl-algebra-to-fem-function/8292 "2022-05-12T11:07:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dokken](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/dokken/32/1560_2.png) [@dokken](https://fenicsproject.discourse.group/u/dokken)\
**Post date:** [May 12, 2022, 12:28pm UTC](https://fenicsproject.discourse.group/t/conversion-of-complex-ufl-algebra-to-fem-function/8292/2 "2022-05-12T12:28:13Z")

</div>

We would need a code that reproduces the error, as the error message is quite general and hard to debug without a minimal example.  
I would suggest start having a look at: [Interpolate expression with complex litteral - #4 by dokken](https://fenicsproject.discourse.group/t/interpolate-expression-with-complex-litteral/8251/4)

---

_[View the full topic](https://fenicsproject.discourse.group/t/conversion-of-complex-ufl-algebra-to-fem-function/8292)._
