Skip to content

Commit 5ac62ce

Browse files
committed
simplify
1 parent 54e5df7 commit 5ac62ce

1 file changed

Lines changed: 9 additions & 14 deletions

File tree

lib/serre.gi

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -353,10 +353,11 @@ IrreducibleDecompositionCollectedHybrid@ := function(rho)
353353
irrep));
354354
parallel := ValueOption("parallel");
355355
if IsBoundGlobal("ParListByFork") then
356-
ParListByFork := ValueGlobal("ParListByFork");
356+
ParListByFork := ValueGlobal("ParListByFork");
357357
elif parallel <> fail then
358358
Error("The GAP package IO must be loaded to use the parallel option!");
359359
fi;
360+
360361
if IsInt(parallel) then
361362
irred_decomp := ParListByFork(irreps, do_decompose, rec(NumberJobs := parallel));
362363
elif parallel <> fail then
@@ -404,19 +405,13 @@ InstallMethod( REPN_ComputeUsingSerre, "for linear reps", [ IsGroupHomomorphism
404405
elif parallel <> fail then
405406
Error("The GAP package IO must be loaded to use the parallel option!");
406407
fi;
407-
if parallel <> fail then
408-
# if the parallel option is set
409-
if IsPackageMarkedForLoading("IO", ">= 4.7.0") then
410-
if IsInt(parallel) then
411-
irred_decomp := ParListByFork(irreps, do_decompose, rec(NumberJobs := parallel));
412-
else
413-
# we default the number of jobs to 4 since everyone
414-
# has 4 threads, at least
415-
irred_decomp := ParListByFork(irreps, do_decompose, rec(NumberJobs := 4));
416-
fi;
417-
else
418-
Error("I need the package IO >= 4.7.0 to use the parallel option!");
419-
fi;
408+
409+
if IsInt(parallel) then
410+
irred_decomp := ParListByFork(irreps, do_decompose, rec(NumberJobs := parallel));
411+
elif parallel <> fail then
412+
# we default the number of jobs to 4 since everyone
413+
# has 4 threads, at least
414+
irred_decomp := ParListByFork(irreps, do_decompose, rec(NumberJobs := 4));
420415
else
421416
irred_decomp := List(irreps, do_decompose);
422417
fi;

0 commit comments

Comments
 (0)