Partition error: mesh has 1 parts

Hello evryone,

I’m trying to partion a mesh file, but as I run the line I’m getting the following error:
line: pyfr partition -p metis 2 -e balanced try.pyfrm .

Traceback (most recent call last):
File “/pyfr-venv3/bin/pyfr”, line 8, in
sys.exit(main())
File “/pyfr-venv3/lib/python3.10/site-packages/pyfr/main.py”, line 124, in main
args.process(args)
File “/pyfr-venv3/lib/python3.10/site-packages/pyfr/main.py”, line 190, in process_partition
mesh, rnum, part_soln_fn = part.partition(mesh, args.progress)
File “/envs/pyfr-venv3/lib/python3.10/site-packages/pyfr/partitioners/base.py”, line 396, in partition
raise RuntimeError(f’Partitioner error: mesh has {n} ’
RuntimeError: Partitioner error: mesh has 1 parts versus goal of 2

Any suggestions?

How many elements are in your mesh? Are you able to post a picture of your mesh?

This error typically occurs when you have a similar number of elements to partitions. With that said there are some known bugs in METIS which can trigger it for larger element counts. If this is the case then please consider using a different partitioner.

Regards, Freddie.