Hello there,
I’m trying to switch from fenics to fenicsx, but I’m struggling with a few things. I installed fenicsx via pip install on Ubuntu and currently I’m just trying to create a simple mesh, but even that won’t work.
A minimal code sample would be
from dolfinx import mesh as dfxmesh
from mpi4py import MPI
N = 50
domain = dfxmesh.create_unit_square(MPI.COMM_WORLD, N, N, dfxmesh.CellType.quadrilateral)
This produces the error message
(0): ERROR: stratParserParse: invalid strategy string, before "25000,sep=m{vert=10000,asc=b{bnd=(d{pass=40}|)q{strat=f}x{bal=0,025000},org=q{strat=f}x{bal=0,025000}},low=q{strat=(m{vert=80,low=h{pass=10}f{bal=0,025000,move=80},asc=b{bnd=(d{pass=40}|)f{bal=0,025000,move=80},org=f{bal=0,025000,move=80}}}|m{vert=80,low=h{pass=10}f{bal=0,025000,move=80},asc=b{bnd=(d{pass=40}|)f{bal=0,025000,move=80},org=f{bal=0,025000,move=80}}})},seq=q{strat=(m{vert=80,low=h{pass=10}f{bal=0,025000,move=80},asc=b{bnd=(d{pass=40}|)f{bal=0,025000,move=80},org=f{bal=0,025000,move=80}}}|m{vert=80,low=h{pass=10}f{bal=0,025000,move=80},asc=b{bnd=(d{pass=40}|)f{bal=0,025000,move=80},org=f{bal=0,025000,move=80}}})}},seq=r{bal=0,025000,poli=S,sep=(m{vert=80,low=h{pass=10}f{bal=0,025000,move=80},asc=b{bnd=(d{pass=40}|)f{bal=0,025000,move=80},org=f{bal=0,025000,move=80}}}|m{vert=80,low=h{pass=10}f{bal=0,025000,move=80},asc=b{bnd=(d{pass=40}|)f{bal=0,025000,move=80},org=f{bal=0,025000,move=80}}})}}"
(0): ERROR: SCOTCH_stratDgraphMap: error in parallel mapping strategy
(0): ERROR: SCOTCH_stratDgraphMapBuild: error in parallel mapping strategy
Traceback (most recent call last):
File ~/.local/lib/python3.8/site-packages/spyder_kernels/py3compat.py:356 in compat_exec
exec(code, globals, locals)
File ~/<path>/test_fenicsx.py:28
domain = dfxmesh.create_unit_square(MPI.COMM_WORLD, N, N, dfxmesh.CellType.quadrilateral)
File /usr/lib/petsc/lib/python3/dist-packages/dolfinx/mesh.py:393 in create_unit_square
return create_rectangle(comm, [np.array([0.0, 0.0]),
File /usr/lib/petsc/lib/python3/dist-packages/dolfinx/mesh.py:369 in create_rectangle
mesh = _cpp.mesh.create_rectangle(comm, points, n, cell_type, ghost_mode, partitioner, diagonal)
RuntimeError: Error calling SCOTCH_stratDgraphMapBuild
Do I need to maybe install something else or update something? To me, it sounds like it is a C++ problem, but unfortunately I’m not really familiar with C++.