Changeset 6a5712c in git for Singular/LIB
- Timestamp:
- Nov 26, 2009, 1:45:36 PM (14 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
- Children:
- 28f60ccf21a7ca5ee6bd5aaa6eba3291e8c46a09
- Parents:
- bd19b6bb49208a846ad48960d27e4262b206efea
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/toric.lib
rbd19b6 r6a5712c 21 21 if(nvars(basering)<ncols(A)) 22 22 { 23 "ERROR: The number of matrix columns is smaller than the number of ring variables."; 24 return(I); 23 ERROR("The number of matrix columns is smaller than the number of ring variables."); 25 24 } 26 25 … … 205 204 if(external_ord=="") 206 205 { 207 "ERROR: The term ordering of the actual basering is not supported."; 208 return(I); 206 ERROR("The term ordering of the actual basering is not supported."); 209 207 } 210 208 … … 215 213 // extended matrix 216 214 { 217 "ERROR: The chosen algorithm is not suitable."; 218 return(I); 215 ERROR("The chosen algorithm is not suitable."); 219 216 } 220 217 … … 263 260 if(found==0) 264 261 { 265 "ERROR: The chosen algorithm needs a positive vector in the row space of the matrix.";266 262 close(MATRIX); 267 263 dummy=system("sh","rm -f "+matrixfile); 268 return(I);264 ERROR("The chosen algorithm needs a positive vector in the row space of the matrix."); 269 265 } 270 266 write(MATRIX,"positive row space vector:"); … … 279 275 // call external program 280 276 dummy=system("sh","toric_ideal -alg "+alg+" "+matrixfile); 277 if (dummy!=0) { ERROR("toric_ideal failed with error code "+string(dummy)); } 281 278 282 279 // read toric ideal from created file … … 355 352 if(size(prsv)<ncols(A)) 356 353 { 357 "ERROR: The number of matrix columns does not equal the size of the positive row space vector."; 358 return(I); 354 ERROR("The number of matrix columns does not equal the size of the positive row space vector."); 359 355 } 360 356 … … 362 358 if(nvars(basering)!=ncols(A)) 363 359 { 364 "ERROR: The number of matrix columns is smaller than the number of ring variables."; 365 return(I); 360 ERROR("The number of matrix columns is smaller than the number of ring variables."); 366 361 } 367 362 … … 546 541 if(external_ord=="") 547 542 { 548 "ERROR: The term ordering of the actual basering is not supported."; 549 return(I); 543 ERROR("The term ordering of the actual basering is not supported."); 550 544 } 551 545 … … 556 550 // extended matrix 557 551 { 558 "ERROR: The chosen algorithm is not suitable."; 559 return(I); 552 ERROR("The chosen algorithm is not suitable."); 560 553 } 561 554 … … 595 588 // call external program 596 589 dummy=system("sh","toric_ideal -alg "+alg+" "+matrixfile); 590 if (dummy!=0) { ERROR("toric_ideal failed with error code "+string(dummy)); } 597 591 598 592 // read toric ideal from created file … … 930 924 if(external_ord=="") 931 925 { 932 "ERROR: The term ordering of the actual basering is not supported."; 933 return(I); 926 ERROR("The term ordering of the actual basering is not supported."); 934 927 } 935 928 … … 967 960 if(head==0 && tail==0 && rest!=0) 968 961 { 969 "ERROR: Generator "+string(j)+" of the input ideal is no binomial.";970 962 close(GROEBNER); 971 963 dummy=system("sh","rm -f "+groebnerfile); 972 return(J);964 ERROR("Generator "+string(j)+" of the input ideal is no binomial."); 973 965 } 974 966 … … 976 968 // generator is no difference of monomials (or a constant multiple) 977 969 { 978 "ERROR: Generator "+string(j)+" of the input ideal is no difference of monomials.";979 970 close(GROEBNER); 980 971 dummy=system("sh","rm -f "+groebnerfile); 981 return(J);972 ERROR("Generator "+string(j)+" of the input ideal is no difference of monomials."); 982 973 } 983 974 … … 1010 1001 // call external program 1011 1002 dummy=system("sh","change_cost "+groebnerfile+" "+newcostfile); 1003 if (dummy!=0) { ERROR("change_cost failed with error code "+string(dummy)); } 1012 1004 1013 1005 // read toric standard basis from created file
Note: See TracChangeset
for help on using the changeset viewer.