Changeset 17b0b05 in git


Ignore:
Timestamp:
May 12, 2011, 3:12:45 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
2c41bc0e28c6628127866480994b3041a3c1f0af
Parents:
ea000154f0b80de2f44a961be0d4a407828b72c9
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-05-12 15:12:45+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:36:07+01:00
Message:
fix loading of gftables

- fix loading in nfReadTable
- fix feCleanUpFile
- add to feResourceConfigs: %b/../../factory/gftables
- add feStringAppendResources to test of GF polys
Location:
libpolys
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/ffields.cc

    rea0001 r17b0b05  
    1717#include <resources/feFopen.h>
    1818#include <math.h>
    19 #include <factory/factory.h>
    2019
    2120
     
    612611    else     r->m_nfCharQ = -c;
    613612    char buf[100];
    614     sprintf(buf,GFTABLEDIR "/%d",r->m_nfCharQ);
     613    sprintf(buf,"%d",r->m_nfCharQ);
    615614    FILE * fp = feFopen(buf,"r",NULL,TRUE);
    616615    if (fp==NULL)
  • libpolys/polys/monomials/ring.cc

    rea0001 r17b0b05  
    136136*/
    137137
    138 ring rDefault(coeffs cf, int N, char **n,int ord_size, int *ord, int *block0, int *block1)
     138ring rDefault(const coeffs cf, int N, char **n,int ord_size, int *ord, int *block0, int *block1)
    139139{
    140140  assume( cf != NULL);
     
    170170  return rDefault(cf,N,n,ord_size,ord,block0,block1);
    171171}
    172 ring   rDefault(coeffs cf, int N, char **n)
    173 {
    174   assume( cf != NULL);
    175   /*order: lp,0*/
    176   int *order = (int *) omAlloc(2* sizeof(int));
    177   int *block0 = (int *)omAlloc0(2 * sizeof(int));
    178   int *block1 = (int *)omAlloc0(2 * sizeof(int));
    179   /* ringorder dp for the first block: var 1..N */
    180   order[0]  = ringorder_lp;
    181   block0[0] = 1;
    182   block1[0] = N;
    183   /* the last block: everything is 0 */
    184   order[1]  = 0;
    185 
    186   return rDefault(cf,N,n,2,order,block0,block1);
     172ring   rDefault(const coeffs cf, int N, char **n)
     173{
     174  if( cf != NULL)
     175  {
     176    /*order: lp,0*/
     177    int *order = (int *) omAlloc(2* sizeof(int));
     178    int *block0 = (int *)omAlloc0(2 * sizeof(int));
     179    int *block1 = (int *)omAlloc0(2 * sizeof(int));
     180    /* ringorder dp for the first block: var 1..N */
     181    order[0]  = ringorder_lp;
     182    block0[0] = 1;
     183    block1[0] = N;
     184    /* the last block: everything is 0 */
     185    order[1]  = 0;
     186
     187    return rDefault(cf,N,n,2,order,block0,block1);
     188  }
     189  else return NULL;
    187190}
    188191
  • libpolys/polys/monomials/ring.h

    rea0001 r17b0b05  
    335335idhdl  rDefault(const char *s);
    336336ring   rDefault(int ch, int N, char **n);
    337 ring   rDefault(coeffs cf, int N, char **n);
     337ring   rDefault(const coeffs cf, int N, char **n);
    338338ring rDefault(int ch, int N, char **n,int ord_size, int *ord, int *block0, int *block1);
    339 ring rDefault(coeffs cf, int N, char **n,int ord_size, int *ord, int *block0, int *block1);
     339ring rDefault(const coeffs cf, int N, char **n,int ord_size, int *ord, int *block0, int *block1);
    340340
    341341// #define rIsRingVar(A) r_IsRingVar(A,currRing)
  • libpolys/resources/feResource.cc

    rea0001 r17b0b05  
    1717
    1818#include "feResource.h"
    19 
    2019
    2120#ifdef AIX_4
     
    8382   "%r/../LIB;"
    8483   "%d/LIB;"
    85    "%d/../LIB"
     84   "%d/../LIB;"
     85   "%b/../../../factory/gftables;"
     86   "%b/../../factory/gftables",
    8687   ""},
    8788  {"Singular",  'S',    feResBinary,"SINGULAR_EXECUTABLE",  "%d/"S_UNAME"/Singular",(char *)""},
     
    523524        if (*(fn+2) == '.' && (*(fn + 3) == '/' || *(fn + 3) == '\0'))
    524525        {
     526        #if 0
     527        // this does not work: ./../../mmm will be changed to ./../mmm
     528        // but we only want to change ././mmm to ./mmm
    525529          *fn = '\0';
    526530          s = strrchr(fname, '/');
     
    534538            *fn = '/';
    535539          }
     540        #endif
    536541        }
    537542        else if (*(fn+2) == '/' || *(fn+2) == '\0')
  • libpolys/tests/polys_test.h

    rea0001 r17b0b05  
    300300   void test_Z13_t_GF()
    301301   {
     302     StringSetS("ressources in use (as reported by feStringAppendResources(0):\n");
     303     feStringAppendResources(0);
     304     PrintS(StringAppendS("\n"));
     305
    302306     clog << "Creating  GF[t]: " << endl;
    303307
Note: See TracChangeset for help on using the changeset viewer.