dolfinx-tutorial
dolfinx-tutorial copied to clipboard
Fundamentals gives an error with standard DOLFINx docker install
I made changes that implement the fix described here: https://fenicsproject.discourse.group/t/dolfinx-failure-to-conjugate-test-function-in-complex-form/6413/7
I wouldn't call this a bug. The fundamentals code is mean to run in DOLFINx real mode, as it has no complex components. I've explained in detail how variational forms for complex problems should be handled at: https://jorgensd.github.io/dolfinx-tutorial/chapter1/complex_mode.html
Ah, I see. Thanks for clarifying. It does seem desirable for the average user to have an easy-to-use example that works "out of the box". The code as written doesn't run out of the box, at least not with the standard DOLFINx docker image. Do you think it would make more sense, then, to modify the docker image rather than modify the code in the tutorial?
Changed title to reflect that this is indeed not a bug.
The default of the docker images is running dolfinx in real mode (if you are using dolfinx/lab:nightly
, dolfinx/dolfinx:nightly
or dokken92/dolfinx_custom:10082022
)
this is Also hard-coded into the notebooks:
https://github.com/jorgensd/dolfinx-tutorial/blob/dokken/jupyterbook/chapter1/fundamentals_code.py#L10 as the kernel_spec is different from the complex demo: https://github.com/jorgensd/dolfinx-tutorial/blob/dokken/jupyterbook/chapter1/complex_mode.py#L10
What docker image are you using?
As I do not believe there is any benefit of allow all demos to be ran in complex mode (as all input is real), I will close this PR for now