I was trying to run a minimal example on the real_element space:
import dolfinx as dfx
from mpi4py.MPI import COMM_WORLD as comm
import numpy as np
from scifem import create_real_functionspace
M = 20
mesh = dfx.mesh.create_unit_square(
comm, M, M, dfx.mesh.CellType.triangle, dtype=np.float64
)
V = dfx.fem.functionspace(mesh, ("Lagrange", 1))
R = create_real_functionspace(mesh)
I've got the following error, however:
Traceback (most recent call last):
File "/Users/doerffel/Documents/Demos/Python/Fenicsx/basic_features/real_element_minimal.py", line 12, in <module>
R = create_real_functionspace(mesh)
File "/Users/doerffel/anaconda3/envs/fenicsx-env/lib/python3.10/site-packages/scifem/__init__.py", line 51, in create_real_functionspace
cppV = _scifem.create_real_functionspace_float64(mesh._cpp_object, value_shape)
TypeError: create_real_functionspace_float64(): incompatible function arguments. The following argument types are supported:
1. create_real_functionspace_float64(arg0: dolfinx::mesh::Mesh<double>, arg1: collections.abc.Sequence[int], /) -> dolfinx::fem::FunctionSpace<double>
Invoked with types: dolfinx.cpp.mesh.Mesh_float64, tuple
I've installed scifemas recommended within a working fenicx env (v.0.8.0) via
python3 -m pip install scifem
I needed to remove the --no-build-isolationin order to sucessfully install everything. My conda env is:
Hi!
I was trying to run a minimal example on the real_element space:
I've got the following error, however:
I've installed
scifem
as recommended within a workingfenicx
env (v.0.8.0) viaI needed to remove the
--no-build-isolation
in order to sucessfully install everything. My conda env is:Is there anything I can do, or is there a bug to be fixed in scifem?
I would be very happy to get this fixed!
Best, Tom