Changeset 108e2ec in git for Singular/ipassign.cc


Ignore:
Timestamp:
Feb 7, 2012, 4:09:09 PM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
e820b2742576b9439413aa208f1adc443953838f
Parents:
ae816e1c041b7e2bc87647e5ca3d90eb79662487
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-02-07 16:09:09+01:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-02-07 19:23:15+01:00
Message:
allow setting minpoly to 0 due to legacy Singular

CHG: in the case of transcendental ground field minpoly is already 0 thus nothing is to be done...
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipassign.cc

    rae816e r108e2ec  
    194194  if ( !nCoeff_is_transExt(currRing->cf) )
    195195  {
    196     WerrorS("no minpoly allowed over non-transcendental ground field");
    197     return TRUE;
     196//    return TRUE;
     197#ifndef NDEBUG
     198    WarnS("Trying to set minpoly over non-transcendental ground field...");
     199#endif
    198200  }
    199201
    200202  if ( currRing->idroot != NULL )
    201203  {
     204//    return TRUE;
    202205#ifndef NDEBUG     
    203 //    return TRUE;
    204   idhdl p = currRing->idroot;
    205      
    206   WarnS("no minpoly allowed if there are local objects belonging to the basering: ");
    207   while(p != NULL)
    208   {
    209     Print(p->String(TRUE)); PrintLn();
    210     p = p->next;
    211   }   
     206    idhdl p = currRing->idroot;
     207
     208    WarnS("no minpoly allowed if there are local objects belonging to the basering: ");
     209
     210    while(p != NULL)
     211    {
     212      Print(p->String(TRUE)); PrintLn();
     213      p = p->next;
     214    }   
    212215#endif
    213216  }
     
    220223  {
    221224    n_Delete(&p, currRing);
    222     WerrorS("cannot set minpoly to 0");
    223     return TRUE;
     225
     226   
     227    if( nCoeff_is_transExt(currRing->cf) )
     228    {
     229#ifndef NDEBUG     
     230      WarnS("minpoly is already 0...");
     231#endif
     232      return FALSE;
     233    }
     234
     235    WarnS("cannot set minpoly to 0 / alg. extension?");
     236   
     237//    return TRUE;
    224238  }
    225239
Note: See TracChangeset for help on using the changeset viewer.