sblauth/cashocs

[Bug] Error in example "demo_space_mapping_uniform_flow_distribution"

bladesaber opened this issue · 3 comments

Describe the bug
When run demo_space_mapping_uniform_flow_distribution.py, it throw a error below:

skewness_array = self._quality_object.skewness(
TypeError: skewness(): incompatible function arguments. The following argument types are supported:
    1. (arg0: dolfin::Mesh) -> dolfin::MeshFunction<double>

Invoked with: <dolfin.cpp.mesh.Mesh object at 0x7f8c76bdae50>

To Reproduce
python demo_space_mapping_uniform_flow_distribution.py

Screenshots
Screenshot from 2024-02-02 17-15-11

System configuration
conda install -c conda-forge cashocs

Screenshot from 2024-02-02 17-17-13
Screenshot from 2024-02-02 17-17-27
Screenshot from 2024-02-02 17-18-55

Best regard and looking forward to you response.

I cannot reproduce the issue (not even on a completely fresh installation / VM).
For me, the demo runs without any problems.

Here are the results for my development machine:
space_mapping_bug

and here are the results for a completely fresh installation
Screenshot from 2024-02-02 12-00-06

Note that the second run on the new VM throws only an error since I did not install matplotlib.

I also tried running the demo (as it is on the main branch now, where some changes have happened), with the stable release 2.0.14, and it still worked for me.

So in order to help you, I would need the entire output of conda list (and possibly conda info) for your environment.
Also: Did you change anything in the demo file or have you tried using a different mesh?

So strange, I recreated the environment by conda, but still had the same problem. I will have a further check.

I close it, thank you.