Is complex mode supported? #2575
Answered
by
colinjcotter
JunmingDuan
asked this question in
Firedrake support
Replies: 2 comments
-
Hi Junming,
You need to install a separate firedrake distribution that uses complex instead of real numbers. This is done by passing —complex to the install script.
all the best
cjc
On 8 Oct 2022, at 17:39, Junming Duan ***@***.***> wrote:
Dear all,
I have searched around but found no tutorial related to the complex number.
The complex mode is mentioned in UFL document, but I don't know how to use.
For example, if I use
f = Function(V)
f.interpolate(1j*x),
it reports "ufl.log.UFLException: Unexpected complex value in real expression"
Is it possible to use complex number now?
Thanks for any help!
—
Reply to this email directly, view it on GitHub<#2575>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABOSV4SFSEAHDRY7JAFKIATWCGPSPANCNFSM6AAAAAARAKFV64>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
JunmingDuan
-
And you might want to create a separate virtual environment through —venv-name
…Sent from my iPhone
On Oct 8, 2022, at 12:56 PM, Colin J Cotter ***@***.***> wrote:
Hi Junming,
You need to install a separate firedrake distribution that uses complex instead of real numbers. This is done by passing —complex to the install script.
all the best
cjc
On 8 Oct 2022, at 17:39, Junming Duan ***@***.***> wrote:
Dear all,
I have searched around but found no tutorial related to the complex number.
The complex mode is mentioned in UFL document, but I don't know how to use.
For example, if I use
f = Function(V)
f.interpolate(1j*x),
it reports "ufl.log.UFLException: Unexpected complex value in real expression"
Is it possible to use complex number now?
Thanks for any help!
—
Reply to this email directly, view it on GitHub<#2575>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABOSV4SFSEAHDRY7JAFKIATWCGPSPANCNFSM6AAAAAARAKFV64>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear all,
I have searched around but found no tutorial related to the complex number.
The complex mode is mentioned in UFL document, but I don't know how to use.
For example, if I use
f = Function(V)
f.interpolate(1j*x),
it reports "ufl.log.UFLException: Unexpected complex value in real expression"
Is it possible to use complex number now?
Thanks for any help!
Beta Was this translation helpful? Give feedback.
All reactions