Changeset 9a9034 in git


Ignore:
Timestamp:
May 12, 2011, 10:39:59 AM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
ea000154f0b80de2f44a961be0d4a407828b72c9
Parents:
6137945778b99e12da0ed42de11464a71e637602
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-05-12 10:39:59+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:36:06+01:00
Message:
fix: files names and loading of gftables
Location:
factory
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • factory/gfops.cc

    r613794 r9a9034  
    2020#include "canonicalform.h"
    2121#include "variable.h"
    22 #ifdef SINGULAR
    23 #include "singext.h"
    24 #endif
    2522#include "gfops.h"
    2623
     
    7774        gf_table = new unsigned short[gf_maxtable];
    7875
    79 #ifdef SINGULAR
    80     // just copy the table if Singular already read it
    81     //printf("init_gf(gf_get_table) q=%d, nfCharQ=%d\n",q,nfCharQ);
    82     if ( q == nfCharQ )
    83     {
    84         gf_p = p; gf_n = n;
    85         gf_q = q; gf_q1 = q - 1;
    86         gf_m1 = nfM1;
    87         gf_mipo = intVec2CF( nfMinPoly[0], nfMinPoly + 1, 1 );
    88         (void)memcpy( gf_table, nfPlus1Table, gf_q * sizeof( unsigned short ) );
    89         gf_table[gf_q] = 0;
    90         return;
    91     }
    92 #endif
    93 
    9476    // try to open file
    95 #ifndef SINGULAR
    96     sprintf( buffer, GFTABLEDIR "/gftable.%d.%d", p, n );
     77    sprintf( buffer, GFTABLEDIR "/%d", q );
    9778    FILE * inputfile = fopen( buffer, "r" );
    98 #else
    99     sprintf( buffer, "gftables/%d", q );
    100     FILE * inputfile = feFopen( buffer, "r" );
    101 #endif
    10279    STICKYASSERT( inputfile, "can not open GF(q) table" );
    10380
  • factory/singext.h

    r613794 r9a9034  
    99#include "canonicalform.h"
    1010#include "cf_gmp.h"
    11 
    12 // we need this to copy singulars GF(q) table to ours
    13 extern int nfCharQ;
    14 extern int nfM1;
    15 extern int nfMinPoly[];
    16 extern short nfPlus1Table[];
    17 
    18 // used to open the GF(q) tables from Singular
    19 extern FILE * feFopen ( const char * path, const char * mode, char *where = 0, int useWerror = 0, int path_only = 0);
    2011
    2112/*BEGINPUBLIC*/
Note: See TracChangeset for help on using the changeset viewer.