Lines Matching refs:Nf
30 static void linear_vector(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const P… in linear_vector() argument
37 static void linear_scalar(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const P… in linear_scalar() argument
43 static void divergence_sq(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const P… in divergence_sq() argument
158 PetscInt dim, Nf, f; in CreateAuxiliaryVec() local
163 PetscCall(DMGetNumFields(dm, &Nf)); in CreateAuxiliaryVec()
164 PetscCall(PetscMalloc1(Nf, &afuncs)); in CreateAuxiliaryVec()
165 for (f = 0; f < Nf; ++f) afuncs[f] = linear; in CreateAuxiliaryVec()
179 PetscInt Nf, f; in TestFunctionProjection() local
185 PetscCall(DMGetNumFields(dm, &Nf)); in TestFunctionProjection()
186 PetscCall(PetscMalloc1(Nf, &funcs)); in TestFunctionProjection()
187 for (f = 0; f < Nf; ++f) funcs[f] = linear; in TestFunctionProjection()
214 PetscInt Nf, f; in TestFieldProjection() local
220 PetscCall(DMGetNumFields(dm, &Nf)); in TestFieldProjection()
221 PetscCall(PetscMalloc2(Nf, &funcs, Nf, &afuncs)); in TestFieldProjection()
222 for (f = 0; f < Nf; ++f) afuncs[f] = linear; in TestFieldProjection()
251 PetscInt Nf, NfIn; in TestFieldProjectionMultiple() local
257 PetscCall(DMGetNumFields(dm, &Nf)); in TestFieldProjectionMultiple()
259 PetscCall(PetscMalloc2(Nf, &funcs, NfIn, &afuncs)); in TestFieldProjectionMultiple()