# Euler 2d example partition issue

**URL:** https://pyfr.discourse.group/t/euler-2d-example-partition-issue/66
**Category:** General
**Created:** [5 May 2015 14:47 UTC](https://pyfr.discourse.group/t/euler-2d-example-partition-issue/66 "2015-05-05T14:47:29Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![AC1](https://avatars.discourse-cdn.com/v4/letter/a/c77e96/32.png) [@AC1](https://pyfr.discourse.group/u/AC1)
#### Post date: [5 May 2015 14:47 UTC](https://pyfr.discourse.group/t/euler-2d-example-partition-issue/66/1 "2015-05-05T14:47:29Z")

</div>

Hi ,

I’ve been trying to run the EULER 2D vortex example and I’m getting an error. I’ve followed the steps according to the user guide and when I’m typing this command  
`pyfr partition 2 euler_vortex_2d.pyfrm .`, I am getting

```auto
Input Error: Incorrect numflag.
Traceback (most recent call last):
File "/gpfs/cfms/apps/pyFR/py34/bin/pyfr", line 9, in <module>
load_entry_point('pyfr==0.3.0', 'console_scripts', 'pyfr')()
File "/gpfs/cfms/apps/pyFR/py34/lib/python3.4/site-packages/mpmath/ctx_mp.py", line 1301, in g
return f(*args, **kwargs)
File "/gpfs/cfms/apps/pyFR/py34/lib/python3.4/site-packages/pyfr-0.3.0-py3.4.egg/pyfr/scripts/main.py", line 126, in main
File "/gpfs/cfms/apps/pyFR/py34/lib/python3.4/site-packages/pyfr-0.3.0-py3.4.egg/pyfr/scripts/main.py", line 176, in process_partition
File "/gpfs/cfms/apps/pyFR/py34/lib/python3.4/site-packages/pyfr-0.3.0-py3.4.egg/pyfr/partitioners/base.py", line 238, in partition
File "/gpfs/cfms/apps/pyFR/py34/lib/python3.4/site-packages/pyfr-0.3.0-py3.4.egg/pyfr/partitioners/metis.py", line 180, in _partition_graph
File "/gpfs/cfms/apps/pyFR/py34/lib/python3.4/site-packages/pyfr-0.3.0-py3.4.egg/pyfr/partitioners/metis.py", line 112, in _errcheck
pyfr.partitioners.metis.METISErrorInput

```

Any ideas ? All the packages have been installed and sourced accordingly.

I would appreciate your help.

Regards,

Andrei Cimpoeru

---

<div class="post-metadata">

### Author: ![fdw](https://avatars.discourse-cdn.com/v4/letter/f/a587f6/32.png) [@fdw](https://pyfr.discourse.group/u/fdw)
#### Post date: [5 May 2015 15:04 UTC](https://pyfr.discourse.group/t/euler-2d-example-partition-issue/66/2 "2015-05-05T15:04:32Z")

</div>

Hi Andrei,

> I've been trying to run the EULER 2D vortex example and I'm getting  
> an error. I've followed the steps according to the user guide and  
> when I'm typing this command \*pyfr partition 2  
> euler\_vortex\_2d.pyfrm . \*, I am getting
> 
> Input Error: Incorrect numflag. Traceback (most recent call last):  
> File "/gpfs/cfms/apps/pyFR/py34/bin/pyfr", line 9, in \<module\>  
> load\_entry\_point('pyfr==0.3.0', 'console\_scripts', 'pyfr')() File  
> "/gpfs/cfms/apps/pyFR/py34/lib/python3.4/site-packages/mpmath/ctx\_mp.py",  
> line 1301, in g return f(\*args, \*\*kwargs) File  
> "/gpfs/cfms/apps/pyFR/py34/lib/python3.4/site-packages/pyfr-0.3.0-py3.4.egg/pyfr/scripts/main.py",

line 126, in main

> File  
> "/gpfs/cfms/apps/pyFR/py34/lib/python3.4/site-packages/pyfr-0.3.0-py3.4.egg/pyfr/scripts/main.py",

line 176, in process\_partition

> File  
> "/gpfs/cfms/apps/pyFR/py34/lib/python3.4/site-packages/pyfr-0.3.0-py3.4.egg/pyfr/partitioners/base.py",

line 238, in partition

> File  
> "/gpfs/cfms/apps/pyFR/py34/lib/python3.4/site-packages/pyfr-0.3.0-py3.4.egg/pyfr/partitioners/metis.py",

line 180, in \_partition\_graph

> File  
> "/gpfs/cfms/apps/pyFR/py34/lib/python3.4/site-packages/pyfr-0.3.0-py3.4.egg/pyfr/partitioners/metis.py",

line 112, in \_errcheck

> pyfr.partitioners.metis.METISErrorInput
> 
> Any ideas ? All the packages have been installed and sourced  
> accordingly.

It is possible that PyFR is giving METIS a bad graph to partition  
(although this is a standard mesh). However, it is more likely to be  
a problem either with METIS or how we interface with it. (There is  
some complicated code within PyFR that attempts to determine the  
options that METIS was compiled with.)

Given that the partitioning works on both of my systems do you have  
any details with regards to how METIS was compiled?

Regards, Freddie.
