Lines Matching refs:Nf

12 static void pressure_Private(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], cons…  in pressure_Private()  argument
47 PetscInt Nf, Nv; in SNESCorrectDiscretePressure_Private() local
60 PetscCall(PetscDSGetNumFields(ds, &Nf)); in SNESCorrectDiscretePressure_Private()
61 PetscCall(PetscMalloc2(Nf, &intc, Nf, &intn)); in SNESCorrectDiscretePressure_Private()
247 PetscInt Nf, cellHeight, cStart, cEnd; in DMPlexSNESComputeObjectiveFEM() local
251 PetscCall(DMGetNumFields(dm, &Nf)); in DMPlexSNESComputeObjectiveFEM()
254 PetscCall(PetscCalloc1((cEnd - cStart) * Nf, &cintegral)); in DMPlexSNESComputeObjectiveFEM()
260 for (PetscInt f = 0; f < Nf; ++f) *obj += PetscRealPart(cintegral[(c - cStart) * Nf + f]); in DMPlexSNESComputeObjectiveFEM()
767 PetscInt Nf, f; in DMSNESCheckDiscretization() local
779 PetscCall(DMGetNumFields(dm, &Nf)); in DMSNESCheckDiscretization()
780 PetscCall(PetscCalloc3(Nf, &exacts, Nf, &ectxs, PetscMax(1, Nf), &err)); in DMSNESCheckDiscretization()
802 if (Nf > 1) { in DMSNESCheckDiscretization()
805 …for (f = 0; f < Nf; ++f) PetscCheck(err[f] <= tol, comm, PETSC_ERR_ARG_WRONG, "L_2 Error %g for fi… in DMSNESCheckDiscretization()
807 for (f = 0; f < Nf; ++f) error[f] = err[f]; in DMSNESCheckDiscretization()
810 for (f = 0; f < Nf; ++f) { in DMSNESCheckDiscretization()
1066 PetscInt Nf; in DMPlexSetSNESVariableBounds() local
1073 PetscCall(PetscDSGetNumFields(ds, &Nf)); in DMPlexSetSNESVariableBounds()
1074 PetscCall(PetscMalloc4(Nf, &lfuncs, Nf, &lctxs, Nf, &ufuncs, Nf, &uctxs)); in DMPlexSetSNESVariableBounds()
1075 for (PetscInt f = 0; f < Nf; ++f) { in DMPlexSetSNESVariableBounds()