[pyfr] 70/88: Fix a minor bug in the METIS partitioner.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Nov 16 12:05:31 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository pyfr.

commit bbf76c218cc762c0c2a398ffd5a989b474ea00f7
Author: Freddie Witherden <freddie at witherden.org>
Date:   Wed Aug 10 17:23:31 2016 -0700

    Fix a minor bug in the METIS partitioner.
---
 pyfr/partitioners/metis.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyfr/partitioners/metis.py b/pyfr/partitioners/metis.py
index 7ce828c..14c008d 100644
--- a/pyfr/partitioners/metis.py
+++ b/pyfr/partitioners/metis.py
@@ -164,7 +164,7 @@ class METISPartitioner(BasePartitioner):
             opts[oidx] = v
 
         # Select the partitioning function
-        if self.opts['ptype'] == 'rb':
+        if self.opts['ptype'] == self.enum_opts['ptype']['rb']:
             part_graph_fn = w.METIS_PartGraphRecursive
         else:
             part_graph_fn = w.METIS_PartGraphKway

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pyfr.git



More information about the debian-science-commits mailing list