Lines Matching refs:nzl
556 PetscInt nloc, nzl, colbuf[1024], row; in LandauFormJacobian_Internal() local
564 PetscCall(MatGetRow(B, i, &nzl, &cols, &vals)); in LandauFormJacobian_Internal()
565 …PetscCheck(nzl <= 1024, PetscObjectComm((PetscObject)B), PETSC_ERR_PLIB, "Row too big: %" PetscInt… in LandauFormJacobian_Internal()
566 for (PetscInt j = 0; j < nzl; j++) colbuf[j] = moffset + cols[j]; in LandauFormJacobian_Internal()
568 PetscCall(MatSetValues(JacP, 1, &row, nzl, colbuf, vals, ADD_VALUES)); in LandauFormJacobian_Internal()
569 PetscCall(MatRestoreRow(B, i, &nzl, &cols, &vals)); in LandauFormJacobian_Internal()
1932 PetscInt nloc, nzl, *colbuf, row, COL_BF_SIZE = 1024; in LandauCreateJacobianMatrix() local
1940 PetscCall(MatGetRow(B, i, &nzl, NULL, NULL)); in LandauCreateJacobianMatrix()
1941 if (nzl > COL_BF_SIZE) { in LandauCreateJacobianMatrix()
1943 …t_FMT " to %" PetscInt_FMT " (row size %" PetscInt_FMT ") \n", COL_BF_SIZE, 2 * COL_BF_SIZE, nzl)); in LandauCreateJacobianMatrix()
1944 COL_BF_SIZE = nzl; in LandauCreateJacobianMatrix()
1947 PetscCall(MatGetRow(B, i, &nzl, &cols, &vals)); in LandauCreateJacobianMatrix()
1948 for (PetscInt j = 0; j < nzl; j++) colbuf[j] = cols[j] + moffset; in LandauCreateJacobianMatrix()
1950 PetscCall(MatSetValues(ctx->J, 1, &row, nzl, colbuf, vals, INSERT_VALUES)); in LandauCreateJacobianMatrix()
1951 PetscCall(MatRestoreRow(B, i, &nzl, &cols, &vals)); in LandauCreateJacobianMatrix()
2620 PetscInt nloc, nzl, *colbuf, COL_BF_SIZE = 1024, row; in DMPlexLandauCreateMassMatrix() local
2628 PetscCall(MatGetRow(B, i, &nzl, NULL, NULL)); in DMPlexLandauCreateMassMatrix()
2629 if (nzl > COL_BF_SIZE) { in DMPlexLandauCreateMassMatrix()
2631 …t_FMT " to %" PetscInt_FMT " (row size %" PetscInt_FMT ") \n", COL_BF_SIZE, 2 * COL_BF_SIZE, nzl)); in DMPlexLandauCreateMassMatrix()
2632 COL_BF_SIZE = nzl; in DMPlexLandauCreateMassMatrix()
2635 PetscCall(MatGetRow(B, i, &nzl, &cols, &vals)); in DMPlexLandauCreateMassMatrix()
2636 for (PetscInt j = 0; j < nzl; j++) colbuf[j] = cols[j] + moffset; in DMPlexLandauCreateMassMatrix()
2638 PetscCall(MatSetValues(packM, 1, &row, nzl, colbuf, vals, INSERT_VALUES)); in DMPlexLandauCreateMassMatrix()
2639 PetscCall(MatRestoreRow(B, i, &nzl, &cols, &vals)); in DMPlexLandauCreateMassMatrix()