Hi community,
To run the 2d test cases on PyFR with turbulence plugin (develop branch), using METIS 5.2.0 as partitioner, I get the following errors:
- test case: 2d-euler-vortex
$ pyfr partition 2 *.pyfrm *.pyfrs ./
Traceback (most recent call last):
File "/home/amberjia1205/venv/bin/pyfr", line 33, in <module>
sys.exit(load_entry_point('pyfr', 'console_scripts', 'pyfr')())
File "/home/amberjia1205/PyFR_turbulence/PyFR/pyfr/__main__.py", line 125, in main
args.process(args)
File "/home/amberjia1205/PyFR_turbulence/PyFR/pyfr/__main__.py", line 191, in process_partition
mesh, rnum, part_soln_fn = part.partition(mesh, args.progress)
File "/home/amberjia1205/PyFR_turbulence/PyFR/pyfr/partitioners/base.py", line 391, in partition
vparts = self._partition_graph(graph, self.partwts).tolist()
File "/home/amberjia1205/PyFR_turbulence/PyFR/pyfr/partitioners/metis.py", line 166, in _partition_graph
part_graph_fn(
File "/home/amberjia1205/PyFR_turbulence/PyFR/pyfr/ctypesutil.py", line 37, in _errcheck
raise self._statuses[status]
pyfr.partitioners.metis.METISErrorInput
- test case: 2d-couette-flow
$ pyfr partition 2 *.pyfrm *.pyfrs ./
Traceback (most recent call last):
File "/home/amberjia1205/venv/bin/pyfr", line 33, in <module>
sys.exit(load_entry_point('pyfr', 'console_scripts', 'pyfr')())
File "/home/amberjia1205/PyFR_turbulence/PyFR/pyfr/__main__.py", line 125, in main
args.process(args)
File "/home/amberjia1205/PyFR_turbulence/PyFR/pyfr/__main__.py", line 172, in process_partition
raise ValueError(f'Missing element weights for: {missing}')
ValueError: Missing element weights for: tri, quad
After reading the performance page, I changed command to:
$ pyfr partition -e balanced couette-flow.pyfrm couette-flow.pyfrs ./
Traceback (most recent call last):
File "/home/amberjia1205/venv/bin/pyfr", line 33, in <module>
sys.exit(load_entry_point('pyfr', 'console_scripts', 'pyfr')())
File "/home/amberjia1205/PyFR_turbulence/PyFR/pyfr/__main__.py", line 125, in main
args.process(args)
File "/home/amberjia1205/PyFR_turbulence/PyFR/pyfr/__main__.py", line 153, in process_partition
pinfo = mesh.partition_info('spt')
File "/home/amberjia1205/PyFR_turbulence/PyFR/pyfr/util.py", line 39, in newmeth
res = cache[key] = meth(self, *args, **kwargs)
File "/home/amberjia1205/PyFR_turbulence/PyFR/pyfr/readers/native.py", line 84, in partition_info
ai = self.array_info(prefix)
File "/home/amberjia1205/PyFR_turbulence/PyFR/pyfr/util.py", line 39, in newmeth
res = cache[key] = meth(self, *args, **kwargs)
File "/home/amberjia1205/PyFR_turbulence/PyFR/pyfr/readers/native.py", line 67, in array_info
fmaxpn = max(int(re.search(r'\d+$', n)[0]) for n in names)
ValueError: max() arg is an empty sequence
Iāve tested the above cases in a previous release v1.14.0 with metis 5.1.0, using the single command: pyfr partition 2 euler-vortex.pyfrm euler-vortex.pyfrs
pyfr partition 2 couette-flow.pyfrm couette-flow.pyfrs
both cases were partitioned properly with no error.
Can you help me with this please?
Thanks