Commits

Jed Brown  committed e8c4938 Merge

Merge branch 'toby/pcml-nnz'

* toby/pcml-nnz:
PCML: set N_nonzeros so thatfine-grid operator complexity is reported

  • Participants
  • Parent commits 49f7f57, 8a62b70

Comments (0)

Files changed (1)

File src/ksp/pc/impls/ml/ml.c

   KSP            smoother;
   PC             subpc;
   PetscInt       mesh_level, old_mesh_level;
+  MatInfo        info;
 
   PetscFunctionBegin;
   A    = pc->pmat;
     ml_object->Amat[0].num_PDEs            = bs;
   }
 
+  ierr = MatGetInfo(A,MAT_LOCAL,&info);CHKERRQ(ierr);
+  ml_object->Amat[0].N_nonzeros = (int) info.nz_used;
+
   if (pc_ml->dim) {
     PetscInt               i,dim = pc_ml->dim;
     ML_Aggregate_Viz_Stats *grid_info;