From 34fa6addc99048b27d3d9cd4dde715933b97fde1 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Sun, 6 Sep 2015 16:37:02 -0700 Subject: More tuning in &nf. --- src/misc/extra/extraUtilMisc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/misc/extra') diff --git a/src/misc/extra/extraUtilMisc.c b/src/misc/extra/extraUtilMisc.c index b4ba7940..1b14e07f 100644 --- a/src/misc/extra/extraUtilMisc.c +++ b/src/misc/extra/extraUtilMisc.c @@ -2208,7 +2208,12 @@ int * Extra_PermSchedule( int n ) int nGroups = nFact / n / 2; int * pRes = ABC_ALLOC( int, nFact ); int * pRes0, i, k, b = 0; - assert( n > 1 ); + assert( n > 0 ); + if ( n == 1 ) + { + pRes[0] = 0; + return pRes; + } if ( n == 2 ) { pRes[0] = pRes[1] = 0; -- cgit v1.2.3