dolfinx-tutorial icon indicating copy to clipboard operation
dolfinx-tutorial copied to clipboard

Fundamentals gives an error with standard DOLFINx docker install

Open bradlipovsky opened this issue 1 year ago • 4 comments

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

bradlipovsky avatar Aug 04 '22 18:08 bradlipovsky

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

jorgensd avatar Aug 09 '22 09:08 jorgensd

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?

bradlipovsky avatar Aug 13 '22 09:08 bradlipovsky

Changed title to reflect that this is indeed not a bug.

bradlipovsky avatar Aug 13 '22 09:08 bradlipovsky

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?

jorgensd avatar Aug 13 '22 09:08 jorgensd