Changeset a93f95f in git


Ignore:
Timestamp:
May 12, 2014, 4:06:45 PM (10 years ago)
Author:
Andreas Steenpass <steenpass@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '4188d308699580d975efd0f6cca8dcb41c396f70')
Children:
a2e51b4ffde3a3b0852028ca13044ea2bdaeb471
Parents:
868d77da262fc3cd0ba86c003e62b39cafb75dbe
git-author:
Andreas Steenpass <steenpass@mathematik.uni-kl.de>2014-05-12 16:06:45+02:00
git-committer:
Andreas Steenpass <steenpass@mathematik.uni-kl.de>2014-05-20 08:03:42+02:00
Message:
fix: handle lists correctly in modular.lib

(cherry picked from commit ac96cef11e4341326c51834000ea40c735afff39)
Signed-off-by: Andreas Steenpass <steenpass@mathematik.uni-kl.de>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/modular.lib

    r868d77d ra93f95f  
    126126        else {
    127127            ncores_available = system("semaphore", "get_value", sem_cores)+1;
    128             nNewPrimes = nAllPrimes div ncores_available;
    129128            if (nAllPrimes < ncores_available) {
    130129                nNewPrimes = nAllPrimes;
     
    155154        for (i = size(indices); i > 0; i--) {
    156155            modresults = delete(modresults, indices[i]);
     156            primes = delete(primes, indices[i]);
    157157        }
    158158
     
    165165                list(N)+primes);
    166166        }
     167        modresults = list();
    167168        for (i = size(primes); i > 0; i--) {
    168169            N = N*primes[i];
Note: See TracChangeset for help on using the changeset viewer.