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

◆ start_computation()

void res_comp::start_computation ( )
virtual

Implements ResolutionComputation.

Definition at line 917 of file res-a1.cpp.

918{
919 if (status() == COMP_DONE) return;
921 DO(gens(lodegree));
922 DO(pairs(1, lodegree)); // MES: Probably not needed...
923
924 for (; n_degree <= hidegree; n_degree++, n_level = 2)
925 {
926 if (stop_.stop_after_degree && stop_.degree_limit->array[0] < n_degree)
927 {
929 return;
930 }
931 if (M2_gbTrace >= 1)
932 {
933 buffer o;
934 o << '{' << n_degree << '}';
935 emit_wrapped(o.str());
936 }
937
938 if (n_level == 2)
939 {
941 DO(gens(n_degree + 1));
942 DO(pairs(1, n_degree + 1));
943 n_level = 3;
944 }
945
946 for (; n_level <= length_limit + 1; n_level++)
947 {
948 if (M2_gbTrace >= 1) emit_wrapped(".");
949
950 DO(pairs(n_level - 1, n_degree));
951 DO(pairs(n_level - 1, n_degree + 1));
953 }
954 }
955 if (M2_gbTrace >= 6)
956 {
957 buffer o;
958 text_out(o);
959 emit(o.str());
960 }
962}
enum ComputationStatusCode status() const
Definition comp.hpp:100
enum ComputationStatusCode set_status(enum ComputationStatusCode)
Definition comp.cpp:66
StopConditions stop_
Definition comp.hpp:75
char * str()
Definition buffer.hpp:72
int hidegree
Definition res-a1.hpp:98
enum ComputationStatusCode reductions(int level, int deg)
Definition res-a1.cpp:1024
int lodegree
Definition res-a1.hpp:97
enum ComputationStatusCode pairs(int level, int deg)
Definition res-a1.cpp:997
int n_level
Definition res-a1.hpp:88
enum ComputationStatusCode gens(int deg)
Definition res-a1.cpp:964
int length_limit
Definition res-a1.hpp:99
int n_degree
Definition res-a1.hpp:89
void text_out(const res_pair *p) const
Definition res-a1.cpp:1287
@ COMP_DONE
Definition computation.h:60
@ COMP_DONE_DEGREE_LIMIT
Definition computation.h:61
@ COMP_COMPUTING
Definition computation.h:71
int M2_gbTrace
Definition m2-types.cpp:52
#define DO(CALL)
Definition res-a0.cpp:256
void emit_wrapped(const char *s)
Definition text-io.cpp:27
void emit(const char *s)
Definition text-io.cpp:41

References COMP_COMPUTING, COMP_DONE, COMP_DONE_DEGREE_LIMIT, DO, emit(), emit_wrapped(), gens(), hidegree, length_limit, lodegree, M2_gbTrace, n_degree, n_level, pairs(), reductions(), Computation::set_status(), Computation::status(), Computation::stop_, buffer::str(), and text_out().