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

◆ rawStartComputation()

Computation * rawStartComputation ( Computation * G)

Definition at line 264 of file groebner.cpp.

266{
267 try
268 {
270 C->start_computation();
271
272 if (M2_gbTrace == 15)
273 {
274 ComputationStatusCode ret = C->status();
275 switch (ret)
276 {
278 emit_line("computation stopped at degree limit");
279 break;
280 case COMP_DONE:
281 emit_line("computation of GB completed");
282 break;
284 emit_line("computation stopped at pair limit");
285 break;
286 case COMP_NEED_RESIZE:
287 case COMP_ERROR:
288 case COMP_INTERRUPTED:
289 case COMP_NOT_STARTED:
295 case COMP_DONE_CODIM:
297 case COMP_DONE_STEPS:
299 case COMP_COMPUTING:
300 case COMP_OVERFLOWED:
301 emit_line("computation stopped for some good reason");
302 break;
303 default:
304 emit_line("incorrect status code encountered");
305 break;
306 }
307 }
308
309 return error() ? nullptr : C;
310 } catch (const exc::engine_error& e)
311 {
312 ERROR(e.what());
313 return nullptr;
314 }
315}
ComputationStatusCode
Definition computation.h:53
@ COMP_DONE_MIN_GENS
Definition computation.h:68
@ COMP_NEED_RESIZE
Definition computation.h:55
@ COMP_DONE_PAIR_LIMIT
Definition computation.h:64
@ COMP_DONE_STEPS
Definition computation.h:69
@ COMP_DONE
Definition computation.h:60
@ COMP_OVERFLOWED
Definition computation.h:72
@ COMP_DONE_SUBRING_LIMIT
Definition computation.h:70
@ COMP_ERROR
Definition computation.h:56
@ COMP_INITIAL_STOP
Definition computation.h:59
@ COMP_DONE_LENGTH_LIMIT
Definition computation.h:62
@ COMP_DONE_GB_LIMIT
Definition computation.h:65
@ COMP_DONE_DEGREE_LIMIT
Definition computation.h:61
@ COMP_DONE_CODIM
Definition computation.h:67
@ COMP_DONE_SYZ_LIMIT
Definition computation.h:66
@ COMP_DONE_SYZYGY_LIMIT
Definition computation.h:63
@ COMP_COMPUTING
Definition computation.h:71
@ COMP_NOT_STARTED
Definition computation.h:58
@ COMP_INTERRUPTED
Definition computation.h:57
int error()
Definition error.c:48
const int ERROR
Definition m2-mem.cpp:55
int M2_gbTrace
Definition m2-types.cpp:52
void emit_line(const char *s)
Definition text-io.cpp:47
void clear_emit_size()
Definition text-io.cpp:26

References clear_emit_size(), COMP_COMPUTING, COMP_DONE, COMP_DONE_CODIM, COMP_DONE_DEGREE_LIMIT, COMP_DONE_GB_LIMIT, COMP_DONE_LENGTH_LIMIT, COMP_DONE_MIN_GENS, COMP_DONE_PAIR_LIMIT, COMP_DONE_STEPS, COMP_DONE_SUBRING_LIMIT, COMP_DONE_SYZ_LIMIT, COMP_DONE_SYZYGY_LIMIT, COMP_ERROR, COMP_INITIAL_STOP, COMP_INTERRUPTED, COMP_NEED_RESIZE, COMP_NOT_STARTED, COMP_OVERFLOWED, emit_line(), ERROR, error(), M2_gbTrace, Computation::start_computation(), and Computation::status().