@@ -30,7 +30,7 @@ GrB_Matrix A = NULL;
3030#ifdef GRAPHBLAS_HAS_CUDA
3131#define NTESTS 4
3232#else
33- #define NTESTS 7
33+ #define NTESTS 8
3434#endif
3535char filename [LEN + 1 ];
3636
@@ -47,6 +47,7 @@ test_info tests[] = {
4747 {"matrix_random_flow.mtx" , 0 ,9 , 22 , LAGraph_ADJACENCY_DIRECTED },
4848 {"rand.mtx" , 0 , 19 , 37 , LAGraph_ADJACENCY_DIRECTED },
4949 {"mcl.mtx" , 0 , 9 , 0 , LAGraph_ADJACENCY_DIRECTED },
50+ {"test_zero_cap.mtx" , 0 , 4 , 0.5 , LAGraph_ADJACENCY_DIRECTED },
5051#ifndef GRAPHBLAS_HAS_CUDA
5152// FIXME: the CUDA cases are currently very slow for these matrices,
5253// when the GPU is hacked to always be used regardless of problem size:
@@ -84,14 +85,14 @@ void test_MaxFlow(void) {
8485 // test with JIT
8586 OK (GxB_Global_Option_set (GxB_JIT_C_CONTROL , GxB_JIT_ON ));
8687 double flow = 0 ;
87- OK (LAGr_MaxFlow (& flow , NULL , G , tests [test ].S , tests [test ].T , msg ));
88+ OK (LAGr_MaxFlow (& flow , NULL , NULL , G , tests [test ].S , tests [test ].T , msg ));
8889 printf ("%s\n" , msg );
8990 printf ("flow is: %lf\n" , flow );
9091 TEST_CHECK (flow == tests [test ].F );
9192
9293 // test without JIT
9394 OK (GxB_Global_Option_set (GxB_JIT_C_CONTROL , GxB_JIT_OFF ));
94- OK (LAGr_MaxFlow (& flow , NULL , G , tests [test ].S , tests [test ].T , msg ));
95+ OK (LAGr_MaxFlow (& flow , NULL , NULL , G , tests [test ].S , tests [test ].T , msg ));
9596 TEST_CHECK (flow == tests [test ].F );
9697 OK (GxB_Global_Option_set (GxB_JIT_C_CONTROL , GxB_JIT_ON ));
9798
@@ -107,7 +108,7 @@ void test_MaxFlow(void) {
107108 {
108109 printf ("src: %d, dest: %d\n" , (int ) src , (int ) dest );
109110 if (src == dest ) continue ;
110- OK (LAGr_MaxFlow (& flow , NULL , G , src , dest , msg ));
111+ OK (LAGr_MaxFlow (& flow , NULL , NULL , G , src , dest , msg ));
111112 }
112113 }
113114 }
@@ -152,7 +153,7 @@ void test_MaxFlowMtx(void) {
152153 // test with JIT
153154 OK (GxB_Global_Option_set (GxB_JIT_C_CONTROL , GxB_JIT_ON ));
154155 double flow = 0 ;
155- OK (LAGr_MaxFlow (& flow , & flow_mtx , G , tests [test ].S , tests [test ].T , msg ));
156+ OK (LAGr_MaxFlow (& flow , & flow_mtx , NULL , G , tests [test ].S , tests [test ].T , msg ));
156157 TEST_CHECK (flow_mtx != NULL ) ;
157158 GxB_print (flow_mtx , 2 ) ;
158159 int status = LG_check_flow (flow_mtx , msg );
@@ -165,7 +166,7 @@ void test_MaxFlowMtx(void) {
165166
166167 // test without JIT
167168 OK (GxB_Global_Option_set (GxB_JIT_C_CONTROL , GxB_JIT_OFF ));
168- OK (LAGr_MaxFlow (& flow , & flow_mtx , G , tests [test ].S , tests [test ].T , msg ));
169+ OK (LAGr_MaxFlow (& flow , & flow_mtx , NULL , G , tests [test ].S , tests [test ].T , msg ));
169170 TEST_CHECK (flow_mtx != NULL ) ;
170171 status = LG_check_flow (flow_mtx , msg );
171172 TEST_CHECK (status == GrB_SUCCESS ) ;
0 commit comments