Macaulay2 Engine
Loading...
Searching...
No Matches

◆ enter()

void enter_factory::enter ( )

Definition at line 108 of file factory.cpp.

109{
110 oldcharac = getCharacteristic();
111 oldRatlState = isOn(SW_RATIONAL);
112 // needed for factory 4.1.1; already turned on by default in factory >= 4.1.2
113 On(SW_USE_EZGCD_P);
114 switch (mode)
115 {
116 case modeZZ:
117 newRatlState = 0;
118 Off(SW_RATIONAL);
119 newcharac = 0;
120 setCharacteristic(0);
121 break;
122 case modeGF:
123 case modeZn:
124 newRatlState = 0;
125 Off(SW_RATIONAL);
126 setCharacteristic(newcharac);
127 break;
128 case modeQQ:
129 newRatlState = 1;
130 On(SW_RATIONAL);
131 newcharac = 0;
132 setCharacteristic(0);
133 break;
134 default:
137 break;
138 }
139 // if (debugging)
140 // {
141 // if (oldRatlState != newRatlState)
142 // printf(newRatlState ? "--setting factory rational mode on\n"
143 // : "--setting factory rational mode off\n");
144 // if (oldcharac != newcharac)
145 // printf("--changing factory characteristic from %d to %d\n",
146 // oldcharac,
147 // newcharac);
148 // }
149}
@ modeQQ
Definition factory.cpp:45
@ modeGF
Definition factory.cpp:48
@ modeZZ
Definition factory.cpp:46
@ modeZn
Definition factory.cpp:47
enum factoryCoeffMode mode
Definition factory.cpp:85

References mode, modeGF, modeQQ, modeZn, modeZZ, newcharac, newRatlState, oldcharac, and oldRatlState.

Referenced by enter_factory(), and enter_factory().