Commits

Shrirang Abhyankar committed ff5b812

Use 0 instead of NULL for d_nz in MatSeqAIJSetPreallocation call.

Comments (0)

Files changed (1)

src/ts/examples/tutorials/power_grid/stability_9bus/ex9bus.c

     ierr = MatRestoreRow(user->Ybus,2*i,&ncols,NULL,NULL);CHKERRQ(ierr);
   }
 
-  ierr = MatSeqAIJSetPreallocation(J,NULL,d_nnz);CHKERRQ(ierr);
+  ierr = MatSeqAIJSetPreallocation(J,0,d_nnz);CHKERRQ(ierr);
 
   ierr = PetscFree(d_nnz);CHKERRQ(ierr);
   PetscFunctionReturn(0);