Commits

BarryFSmith committed 80c125d

must initialize MatFactorInfo before using

  • Participants
  • Parent commits 55ce00c

Comments (0)

Files changed (1)

File src/mat/examples/tests/ex125.c

     ierr = MatGetFactor(A,MATSOLVERPETSC,MAT_FACTOR_LU,&F);CHKERRQ(ierr);
   }
 
-  info.fill = 5.0;
+  ierr           = MatFactorInfoInitialize(&info);CHKERRQ(ierr);
+  info.fill      = 5.0;
   info.shifttype = (PetscReal) MAT_SHIFT_NONE;
-  ierr      = MatLUFactorSymbolic(F,A,perm,iperm,&info);CHKERRQ(ierr);
+  ierr           = MatLUFactorSymbolic(F,A,perm,iperm,&info);CHKERRQ(ierr);
 
   for (nfact = 0; nfact < 2; nfact++) {
     if (!rank) printf(" %d-the LU numfactorization \n",nfact);