30 October 2024 10:42:06 PM COMP_NEXT_PRB C++ version Test COMP_NEXT. COMP_NEXT_TEST COMP_NEXT generates, one at a time, vectors LEVEL_1D(1:DIM_NUM) whose components add up to LEVEL. We call with: DIM_NUM = 2 0 = LEVEL_MIN <= LEVEL <= LEVEL_MAX = 0 LEVEL INDEX LEVEL_1D Vector 0 1 0 0 COMP_NEXT_TEST COMP_NEXT generates, one at a time, vectors LEVEL_1D(1:DIM_NUM) whose components add up to LEVEL. We call with: DIM_NUM = 2 0 = LEVEL_MIN <= LEVEL <= LEVEL_MAX = 1 LEVEL INDEX LEVEL_1D Vector 0 1 0 0 1 1 1 0 1 2 0 1 COMP_NEXT_TEST COMP_NEXT generates, one at a time, vectors LEVEL_1D(1:DIM_NUM) whose components add up to LEVEL. We call with: DIM_NUM = 2 1 = LEVEL_MIN <= LEVEL <= LEVEL_MAX = 2 LEVEL INDEX LEVEL_1D Vector 1 1 1 0 1 2 0 1 2 1 2 0 2 2 1 1 2 3 0 2 COMP_NEXT_TEST COMP_NEXT generates, one at a time, vectors LEVEL_1D(1:DIM_NUM) whose components add up to LEVEL. We call with: DIM_NUM = 2 2 = LEVEL_MIN <= LEVEL <= LEVEL_MAX = 3 LEVEL INDEX LEVEL_1D Vector 2 1 2 0 2 2 1 1 2 3 0 2 3 1 3 0 3 2 2 1 3 3 1 2 3 4 0 3 COMP_NEXT_TEST COMP_NEXT generates, one at a time, vectors LEVEL_1D(1:DIM_NUM) whose components add up to LEVEL. We call with: DIM_NUM = 2 3 = LEVEL_MIN <= LEVEL <= LEVEL_MAX = 4 LEVEL INDEX LEVEL_1D Vector 3 1 3 0 3 2 2 1 3 3 1 2 3 4 0 3 4 1 4 0 4 2 3 1 4 3 2 2 4 4 1 3 4 5 0 4 COMP_NEXT_TEST COMP_NEXT generates, one at a time, vectors LEVEL_1D(1:DIM_NUM) whose components add up to LEVEL. We call with: DIM_NUM = 3 0 = LEVEL_MIN <= LEVEL <= LEVEL_MAX = 0 LEVEL INDEX LEVEL_1D Vector 0 1 0 0 0 COMP_NEXT_TEST COMP_NEXT generates, one at a time, vectors LEVEL_1D(1:DIM_NUM) whose components add up to LEVEL. We call with: DIM_NUM = 3 0 = LEVEL_MIN <= LEVEL <= LEVEL_MAX = 1 LEVEL INDEX LEVEL_1D Vector 0 1 0 0 0 1 1 1 0 0 1 2 0 1 0 1 3 0 0 1 COMP_NEXT_TEST COMP_NEXT generates, one at a time, vectors LEVEL_1D(1:DIM_NUM) whose components add up to LEVEL. We call with: DIM_NUM = 3 0 = LEVEL_MIN <= LEVEL <= LEVEL_MAX = 2 LEVEL INDEX LEVEL_1D Vector 0 1 0 0 0 1 1 1 0 0 1 2 0 1 0 1 3 0 0 1 2 1 2 0 0 2 2 1 1 0 2 3 0 2 0 2 4 1 0 1 2 5 0 1 1 2 6 0 0 2 COMP_NEXT_TEST COMP_NEXT generates, one at a time, vectors LEVEL_1D(1:DIM_NUM) whose components add up to LEVEL. We call with: DIM_NUM = 3 1 = LEVEL_MIN <= LEVEL <= LEVEL_MAX = 3 LEVEL INDEX LEVEL_1D Vector 1 1 1 0 0 1 2 0 1 0 1 3 0 0 1 2 1 2 0 0 2 2 1 1 0 2 3 0 2 0 2 4 1 0 1 2 5 0 1 1 2 6 0 0 2 3 1 3 0 0 3 2 2 1 0 3 3 1 2 0 3 4 0 3 0 3 5 2 0 1 3 6 1 1 1 3 7 0 2 1 3 8 1 0 2 3 9 0 1 2 3 10 0 0 3 COMP_NEXT_TEST COMP_NEXT generates, one at a time, vectors LEVEL_1D(1:DIM_NUM) whose components add up to LEVEL. We call with: DIM_NUM = 3 2 = LEVEL_MIN <= LEVEL <= LEVEL_MAX = 4 LEVEL INDEX LEVEL_1D Vector 2 1 2 0 0 2 2 1 1 0 2 3 0 2 0 2 4 1 0 1 2 5 0 1 1 2 6 0 0 2 3 1 3 0 0 3 2 2 1 0 3 3 1 2 0 3 4 0 3 0 3 5 2 0 1 3 6 1 1 1 3 7 0 2 1 3 8 1 0 2 3 9 0 1 2 3 10 0 0 3 4 1 4 0 0 4 2 3 1 0 4 3 2 2 0 4 4 1 3 0 4 5 0 4 0 4 6 3 0 1 4 7 2 1 1 4 8 1 2 1 4 9 0 3 1 4 10 2 0 2 4 11 1 1 2 4 12 0 2 2 4 13 1 0 3 4 14 0 1 3 4 15 0 0 4 COMP_NEXT_TEST COMP_NEXT generates, one at a time, vectors LEVEL_1D(1:DIM_NUM) whose components add up to LEVEL. We call with: DIM_NUM = 4 0 = LEVEL_MIN <= LEVEL <= LEVEL_MAX = 2 LEVEL INDEX LEVEL_1D Vector 0 1 0 0 0 0 1 1 1 0 0 0 1 2 0 1 0 0 1 3 0 0 1 0 1 4 0 0 0 1 2 1 2 0 0 0 2 2 1 1 0 0 2 3 0 2 0 0 2 4 1 0 1 0 2 5 0 1 1 0 2 6 0 0 2 0 2 7 1 0 0 1 2 8 0 1 0 1 2 9 0 0 1 1 2 10 0 0 0 2 COMP_NEXT_TEST COMP_NEXT generates, one at a time, vectors LEVEL_1D(1:DIM_NUM) whose components add up to LEVEL. We call with: DIM_NUM = 4 0 = LEVEL_MIN <= LEVEL <= LEVEL_MAX = 3 LEVEL INDEX LEVEL_1D Vector 0 1 0 0 0 0 1 1 1 0 0 0 1 2 0 1 0 0 1 3 0 0 1 0 1 4 0 0 0 1 2 1 2 0 0 0 2 2 1 1 0 0 2 3 0 2 0 0 2 4 1 0 1 0 2 5 0 1 1 0 2 6 0 0 2 0 2 7 1 0 0 1 2 8 0 1 0 1 2 9 0 0 1 1 2 10 0 0 0 2 3 1 3 0 0 0 3 2 2 1 0 0 3 3 1 2 0 0 3 4 0 3 0 0 3 5 2 0 1 0 3 6 1 1 1 0 3 7 0 2 1 0 3 8 1 0 2 0 3 9 0 1 2 0 3 10 0 0 3 0 3 11 2 0 0 1 3 12 1 1 0 1 3 13 0 2 0 1 3 14 1 0 1 1 3 15 0 1 1 1 3 16 0 0 2 1 3 17 1 0 0 2 3 18 0 1 0 2 3 19 0 0 1 2 3 20 0 0 0 3 COMP_NEXT_PRB Normal end of execution. 30 October 2024 10:42:06 PM