issue with defining function with "conditional" #3737
Unanswered
qlyan913
asked this question in
Firedrake support
Replies: 1 comment 2 replies
-
I’m guessing that the UFL just got too complicated. A better way to do this would be to interpolate one term at a time to another field and add this on to your A field using += |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to solving an elliptic PDE on a square with length L in 2D. The coefficient function$A(x)$ is defined as
where$g(x)$ is a function with compact support in $B_s(0)$ with $s$ the radius of a ball and $x_{i,j}$ are some random points inside square.
In the code, the function A is defined as
When L =10, the coefficient looks like the following:
However, the code gives the following error warning if I choose L=100:
Any helps are appreciated.
Beta Was this translation helpful? Give feedback.
All reactions