File tree Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -1172,9 +1172,7 @@ int hov_forward(
11721172 ind_dom[i][0 ] = 0 ;
11731173 ind_dom[i][1 ] = NUMNNZ;
11741174 }
1175- #if defined(_ABS_NORM_)
1176- indexd = swcheck;
1177- #endif
1175+
11781176#endif
11791177#if defined(_NONLIND_)
11801178 maxopind = tape.tapestats (TapeInfos::NUM_OPERATIONS) +
@@ -3898,16 +3896,16 @@ int hov_forward(
38983896#if defined(_INDO_)
38993897#if defined(_INDOPRO_)
39003898#if defined(_ABS_NORM_)
3901- if (ind_dom[arg][0 ] != 0 ) {
3902- crs[switchnum] = new unsigned int [ ind_dom[arg][0 ] + 1 ] ;
3903- crs[switchnum][0 ] = ind_dom[arg][0 ];
3904- for (l = 1 ; l < crs[switchnum][0 ]; l++) {
3905- crs[switchnum][l] = ind_dom[arg][l + 1 ];
3906- }
3907- } else {
3908- crs[switchnum] = new unsigned int [ 1 ] ;
3909- crs[switchnum][0 ] = 0 ;
3910- }
3899+ if (ind_dom[arg][0 ] != 0 ) {
3900+ crs[depcheck+ switchnum] = ( unsigned int *) malloc ( sizeof ( unsigned int )* ( ind_dom[arg][0 ]+ 1 )) ;
3901+ crs[depcheck+ switchnum][0 ] = ind_dom[arg][0 ];
3902+ for (l= 1 ;l<= crs[depcheck+ switchnum][0 ];l++) {
3903+ crs[depcheck+ switchnum][l] = ind_dom[arg][l+ 1 ];
3904+ }
3905+ } else {
3906+ crs[depcheck+ switchnum] = ( unsigned int *) malloc ( sizeof ( unsigned int )) ;
3907+ crs[depcheck+ switchnum][0 ] = 0 ;
3908+ }
39113909 ind_dom[res][0 ] = 1 ;
39123910 ind_dom[res][2 ] = indcheck + switchnum;
39133911#else
You can’t perform that action at this time.
0 commit comments