Lines Matching refs:nf
5984 PetscInt *fld, nf;
5986 for (f = 0, nf = 0; f < Nf; ++f)
5987 if (!dm->fields[f].label) ++nf;
5988 PetscCheck(nf, comm, PETSC_ERR_PLIB, "All fields have labels, but we are trying to create a default DS");
5989 PetscCall(PetscMalloc1(nf, &fld));
5990 for (f = 0, nf = 0; f < Nf; ++f)
5991 if (!dm->fields[f].label) fld[nf++] = f;
5995 PetscCall(ISGeneralSetIndices(fields, nf, fld, PETSC_OWN_POINTER));
6011 PetscInt depth, nf = 0, n, c;
6039 if (!dm->fields[f].label) fields[nf++] = f;
6043 PetscCall(ISGeneralSetIndices(fieldIS, nf, fields, PETSC_OWN_POINTER));
6061 PetscInt *fld, nf;
6064 for (f = 0, nf = 0; f < Nf; ++f)
6065 if (label == dm->fields[f].label || !dm->fields[f].label) ++nf;
6066 PetscCall(PetscMalloc1(nf, &fld));
6067 for (f = 0, nf = 0; f < Nf; ++f)
6068 if (label == dm->fields[f].label || !dm->fields[f].label) fld[nf++] = f;
6072 PetscCall(ISGeneralSetIndices(fields, nf, fld, PETSC_OWN_POINTER));
6098 for (f = 0, nf = 0; f < Nf; ++f) {
6101 PetscCall(PetscDSSetDiscretization(ds, nf, NULL));
6102 PetscCall(PetscDSSetCohesive(ds, nf, isCohesive));
6104 PetscCall(PetscDSSetDiscretization(dsIn, nf, NULL));
6105 PetscCall(PetscDSSetCohesive(dsIn, nf, isCohesive));
6108 ++nf;
6124 PetscInt nf, dsnf;
6129 PetscCall(ISGetLocalSize(fields, &nf));
6131 for (f = 0; f < nf; ++f) {