jengelh-datetimespielwiese
Last change
on this file since 3772383 was
3772383,
checked in by Hans Schoenemann <hannes@…>, 10 years ago
|
fix: restore options after bba (possible ring change)
|
-
Property mode set to
100644
|
File size:
1.6 KB
|
Line | |
---|
1 | #include "config.h" |
---|
2 | #include "mod2.h" |
---|
3 | |
---|
4 | #include <omalloc/omalloc.h> |
---|
5 | #include <misc/auxiliary.h> |
---|
6 | #include <misc/options.h> |
---|
7 | |
---|
8 | #include "polys.h" |
---|
9 | |
---|
10 | ring currRing = NULL; |
---|
11 | ideal currQuotient = NULL; |
---|
12 | |
---|
13 | void rChangeCurrRing(ring r) |
---|
14 | { |
---|
15 | #if 0 |
---|
16 | if ((currRing!=NULL)&&(currRing!=r)) |
---|
17 | { |
---|
18 | currRing->options=si_opt_1 & TEST_RINGDEP_OPTS; |
---|
19 | } |
---|
20 | #endif |
---|
21 | if( r != NULL ) |
---|
22 | { |
---|
23 | rTest(r); |
---|
24 | |
---|
25 | //------------ set global ring vars -------------------------------- |
---|
26 | currRing = r; |
---|
27 | currQuotient = r->qideal; |
---|
28 | //------------ global variables related to coefficients ------------ |
---|
29 | assume( r->cf!= NULL ); |
---|
30 | nSetChar(r->cf); |
---|
31 | //------------ global variables related to polys |
---|
32 | p_SetGlobals(r); |
---|
33 | //------------ global variables related to factory ----------------- |
---|
34 | } |
---|
35 | else |
---|
36 | { |
---|
37 | currRing = NULL; |
---|
38 | currQuotient = NULL; |
---|
39 | } |
---|
40 | } |
---|
41 | /* |
---|
42 | /// internally changes the gloabl ring and resets the relevant |
---|
43 | /// global variables: |
---|
44 | /// SHOULD BE DEPRECATED NOW...? |
---|
45 | void rChangeCurrRing(ring r) |
---|
46 | { |
---|
47 | // if (!rMinpolyIsNULL(currRing)) |
---|
48 | // { |
---|
49 | // omCheckAddr(currRing->cf->minpoly); |
---|
50 | // } |
---|
51 | //------------ set global ring vars -------------------------------- |
---|
52 | //currRing = r; |
---|
53 | //currQuotient=NULL; |
---|
54 | if (r != NULL) |
---|
55 | { |
---|
56 | rTest(r); |
---|
57 | //------------ set global ring vars -------------------------------- |
---|
58 | //currQuotient=r->qideal; |
---|
59 | |
---|
60 | //------------ global variables related to coefficients ------------ |
---|
61 | nSetChar(r->cf); |
---|
62 | |
---|
63 | //------------ global variables related to polys ------------------- |
---|
64 | p_SetGlobals(r); |
---|
65 | //------------ global variables related to factory ----------------- |
---|
66 | } |
---|
67 | } |
---|
68 | */ |
---|
Note: See
TracBrowser
for help on using the repository browser.