Closed rcremese closed 1 year ago
Thanks! I fixed it on 2.4-develop
: https://github.com/tum-pbs/PhiFlow/commit/cfebb7777f0db868ec514a3f1849d24c38a37a2f
You can install it using
$ pip install --force-reinstall git+https://github.com/tum-pbs/PhiFlow@2.4-develop
The fix will also be included in version 2.3.3: https://github.com/tum-pbs/PhiFlow/commit/2135494fe28156c9e51d0b396fa77761eb7bf183
Great ! Thank you for your reactivity !
Hello, it's me again, I open this issue because I updated my phiflow version to 2.3.2 and tried to run the following code :
As one can see, I'm using jax >= 0.3 as backend in order to JIT compile my code. It's a very basic exemple where I diffuse a random field while taking into account absorbing conditions on an obstacle in the center of the scene.
When I try to run the above code with the
flow.diffuse.explicit
method it works fine, even when I decorate the function withflow.math.jit_compile
. Nevertheless, when I try to useflow.diffuse.implicit
with the jit_compile decorator, I get the following exception (I removed the JAX specific stack-trace) :The problem arrises only when I try to JIT-compile the function because when I remove the decorator the code works fine. If you need any supplementary information don't hesitate to contact me. Sincerely your.