Lines Matching refs:Nf
113 PetscInt Nf, numConstants, f; in PetscDSView_Ascii() local
116 PetscCall(PetscDSGetNumFields(ds, &Nf)); in PetscDSView_Ascii()
118 PetscCall(PetscViewerASCIIPrintf(viewer, "Discrete System with %" PetscInt_FMT " fields\n", Nf)); in PetscDSView_Ascii()
122 for (f = 0; f < Nf; ++f) { in PetscDSView_Ascii()
345 if (prob->Nf) PetscCall(PetscDSViewFromOptions(prob, NULL, "-petscds_view")); in PetscDSSetFromOptions()
363 const PetscInt Nf = prob->Nf; in PetscDSSetUp() local
375 PetscCall(PetscMalloc2(Nf, &prob->Nc, Nf, &prob->Nb)); in PetscDSSetUp()
376 PetscCall(PetscCalloc2(Nf + 1, &prob->off, Nf + 1, &prob->offDer)); in PetscDSSetUp()
377 …Nf + 1, &prob->offCohesive[0], Nf + 1, &prob->offCohesive[1], Nf + 1, &prob->offCohesive[2], Nf + … in PetscDSSetUp()
378 PetscCall(PetscMalloc2(Nf, &prob->T, Nf, &prob->Tf)); in PetscDSSetUp()
384 for (f = 0; f < Nf; ++f) { in PetscDSSetUp()
420 for (f = 0; f < Nf; ++f) { in PetscDSSetUp()
445 for (f = 0; f < Nf; ++f) { in PetscDSSetUp()
512 prob->offCohesive[1][Nf] = prob->offCohesive[0][Nf]; in PetscDSSetUp()
513 prob->offDerCohesive[1][Nf] = prob->offDerCohesive[0][Nf]; in PetscDSSetUp()
548 PetscInt Nf = prob->Nf, f; in PetscDSEnlarge_Static() local
551 if (Nf >= NfNew) PetscFunctionReturn(PETSC_SUCCESS); in PetscDSEnlarge_Static()
555 for (f = 0; f < Nf; ++f) { in PetscDSEnlarge_Static()
561 for (f = Nf; f < NfNew; ++f) { in PetscDSEnlarge_Static()
568 prob->Nf = NfNew; in PetscDSEnlarge_Static()
574 for (f = 0; f < Nf; ++f) tmpup[f] = prob->update[f]; in PetscDSEnlarge_Static()
575 for (f = 0; f < Nf; ++f) tmpctx[f] = prob->ctx[f]; in PetscDSEnlarge_Static()
576 for (f = Nf; f < NfNew; ++f) tmpup[f] = NULL; in PetscDSEnlarge_Static()
577 for (f = Nf; f < NfNew; ++f) tmpctx[f] = NULL; in PetscDSEnlarge_Static()
583 for (f = 0; f < Nf; ++f) tmpexactSol[f] = prob->exactSol[f]; in PetscDSEnlarge_Static()
584 for (f = 0; f < Nf; ++f) tmpexactCtx[f] = prob->exactCtx[f]; in PetscDSEnlarge_Static()
585 for (f = 0; f < Nf; ++f) tmpexactSol_t[f] = prob->exactSol_t[f]; in PetscDSEnlarge_Static()
586 for (f = 0; f < Nf; ++f) tmpexactCtx_t[f] = prob->exactCtx_t[f]; in PetscDSEnlarge_Static()
587 for (f = 0; f < Nf; ++f) tmplowerBound[f] = prob->lowerBound[f]; in PetscDSEnlarge_Static()
588 for (f = 0; f < Nf; ++f) tmplowerCtx[f] = prob->lowerCtx[f]; in PetscDSEnlarge_Static()
589 for (f = 0; f < Nf; ++f) tmpupperBound[f] = prob->upperBound[f]; in PetscDSEnlarge_Static()
590 for (f = 0; f < Nf; ++f) tmpupperCtx[f] = prob->upperCtx[f]; in PetscDSEnlarge_Static()
591 for (f = Nf; f < NfNew; ++f) tmpexactSol[f] = NULL; in PetscDSEnlarge_Static()
592 for (f = Nf; f < NfNew; ++f) tmpexactCtx[f] = NULL; in PetscDSEnlarge_Static()
593 for (f = Nf; f < NfNew; ++f) tmpexactSol_t[f] = NULL; in PetscDSEnlarge_Static()
594 for (f = Nf; f < NfNew; ++f) tmpexactCtx_t[f] = NULL; in PetscDSEnlarge_Static()
595 for (f = Nf; f < NfNew; ++f) tmplowerBound[f] = NULL; in PetscDSEnlarge_Static()
596 for (f = Nf; f < NfNew; ++f) tmplowerCtx[f] = NULL; in PetscDSEnlarge_Static()
597 for (f = Nf; f < NfNew; ++f) tmpupperBound[f] = NULL; in PetscDSEnlarge_Static()
598 for (f = Nf; f < NfNew; ++f) tmpupperCtx[f] = NULL; in PetscDSEnlarge_Static()
645 for (f = 0; f < (*ds)->Nf; ++f) PetscCall(PetscObjectDereference((*ds)->disc[f])); in PetscDSDestroy()
689 p->Nf = 0; in PetscDSCreate()
718 PetscErrorCode PetscDSGetNumFields(PetscDS prob, PetscInt *Nf) in PetscDSGetNumFields() argument
722 PetscAssertPointer(Nf, 2); in PetscDSGetNumFields()
723 *Nf = prob->Nf; in PetscDSGetNumFields()
748 if (prob->Nf) { in PetscDSGetSpatialDimension()
902 for (f = 0; f < ds->Nf; ++f) *numCohesive += ds->cohesive[f] ? 1 : 0; in PetscDSGetNumCohesive()
927 …&& !(f >= ds->Nf), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Field number %" PetscInt_FMT " must… in PetscDSGetCohesive()
952 …&& !(f >= ds->Nf), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Field number %" PetscInt_FMT " must… in PetscDSSetCohesive()
955 …for (i = 0; i < ds->Nf; ++i) ds->isCohesive = ds->isCohesive || ds->cohesive[f] ? PETSC_TRUE : PET… in PetscDSSetCohesive()
1030 …!(f >= prob->Nf), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Field number %" PetscInt_FMT " must … in PetscDSGetDiscretization()
1118 PetscCall(PetscWeakFormSetNumFields(wf, ds->Nf)); in PetscDSSetWeakForm()
1138 PetscCall(PetscDSSetDiscretization(prob, prob->Nf, disc)); in PetscDSAddDiscretization()
1164 if (!prob->Nf) PetscFunctionReturn(PETSC_SUCCESS); in PetscDSGetQuadrature()
1194 …!(f >= prob->Nf), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Field number %" PetscInt_FMT " must … in PetscDSGetImplicit()
1217 …!(f >= prob->Nf), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Field number %" PetscInt_FMT " must … in PetscDSSetImplicit()
1243 …&& !(f >= ds->Nf), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Field number %" PetscInt_FMT " must… in PetscDSGetJetDegree()
1266 …&& !(f >= ds->Nf), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Field number %" PetscInt_FMT " must… in PetscDSSetJetDegree()
1298 …&& !(f >= ds->Nf), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Field number %" PetscInt_FMT " must… in PetscDSGetObjective()
1358 …&& !(f >= ds->Nf), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Field number %" PetscInt_FMT " must… in PetscDSGetResidual()
1421 …&& !(f >= ds->Nf), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Field number %" PetscInt_FMT " must… in PetscDSGetRHSResidual()
1515 …&& !(f >= ds->Nf), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Field number %" PetscInt_FMT " must… in PetscDSGetJacobian()
1516 …&& !(g >= ds->Nf), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Field number %" PetscInt_FMT " must… in PetscDSGetJacobian()
1653 …&& !(f >= ds->Nf), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Field number %" PetscInt_FMT " must… in PetscDSGetJacobianPreconditioner()
1654 …&& !(g >= ds->Nf), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Field number %" PetscInt_FMT " must… in PetscDSGetJacobianPreconditioner()
1765 …&& !(f >= ds->Nf), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Field number %" PetscInt_FMT " must… in PetscDSGetDynamicJacobian()
1766 …&& !(g >= ds->Nf), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Field number %" PetscInt_FMT " must… in PetscDSGetDynamicJacobian()
1839 …&& !(f >= ds->Nf), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Field number %" PetscInt_FMT " must… in PetscDSGetRiemannSolver()
1889 …&& !(f >= ds->Nf), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Field number %" PetscInt_FMT " must… in PetscDSGetUpdate()
1946 …&& !(f >= ds->Nf), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Field number %" PetscInt_FMT " must… in PetscDSGetContext()
2007 …&& !(f >= ds->Nf), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Field number %" PetscInt_FMT " must… in PetscDSGetBdResidual()
2104 …&& !(f >= ds->Nf), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Field number %" PetscInt_FMT " must… in PetscDSGetBdJacobian()
2105 …&& !(g >= ds->Nf), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Field number %" PetscInt_FMT " must… in PetscDSGetBdJacobian()
2220 …&& !(f >= ds->Nf), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Field number %" PetscInt_FMT " must… in PetscDSGetBdJacobianPreconditioner()
2221 …&& !(g >= ds->Nf), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Field number %" PetscInt_FMT " must… in PetscDSGetBdJacobianPreconditioner()
2295 …!(f >= prob->Nf), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Field number %" PetscInt_FMT " must … in PetscDSGetExactSolution()
2360 …!(f >= prob->Nf), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Field number %" PetscInt_FMT " must … in PetscDSGetExactSolutionTimeDerivative()
2425 …&& !(f >= ds->Nf), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Field number %" PetscInt_FMT " must… in PetscDSGetLowerBound()
2490 …&& !(f >= ds->Nf), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Field number %" PetscInt_FMT " must… in PetscDSGetUpperBound()
2663 for (g = 0; g < prob->Nf; ++g) { in PetscDSGetFieldIndex()
2666 …PetscCheck(g != prob->Nf, PetscObjectComm((PetscObject)prob), PETSC_ERR_ARG_WRONG, "Field not foun… in PetscDSGetFieldIndex()
2692 …!(f >= prob->Nf), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Field number %" PetscInt_FMT " must … in PetscDSGetFieldSize()
2721 …!(f >= prob->Nf), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Field number %" PetscInt_FMT " must … in PetscDSGetFieldOffset()
2753 …&& !(f >= ds->Nf), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Field number %" PetscInt_FMT " must… in PetscDSGetFieldOffsetCohesive()
2836 …!(f >= prob->Nf), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Field number %" PetscInt_FMT " must … in PetscDSGetComponentOffset()
3182 …d < ds->Nf, PetscObjectComm((PetscObject)ds), PETSC_ERR_ARG_OUTOFRANGE, "Field %" PetscInt_FMT " i… in PetscDSAddBoundary()
3196 PetscCall(PetscWeakFormSetNumFields(b->wf, ds->Nf)); in PetscDSAddBoundary()
3314 PetscCall(PetscWeakFormSetNumFields(b->wf, ds->Nf)); in PetscDSAddBoundaryByName()
3691 PetscInt Nf, Nfn, fn; in PetscDSSelectDiscretizations() local
3697 PetscCall(PetscDSGetNumFields(prob, &Nf)); in PetscDSSelectDiscretizations()
3699 numFields = numFields < 0 ? Nf : numFields; in PetscDSSelectDiscretizations()
3705 if (f >= Nf) continue; in PetscDSSelectDiscretizations()
3740 PetscInt Nf, Nfn, fn, gn; in PetscDSSelectEquations() local
3746 PetscCall(PetscDSGetNumFields(prob, &Nf)); in PetscDSSelectEquations()
3756 if (f >= Nf) continue; in PetscDSSelectEquations()
3771 if (g >= Nf) continue; in PetscDSSelectEquations()
3801 PetscInt Nf, Ng; in PetscDSCopyEquations() local
3806 PetscCall(PetscDSGetNumFields(prob, &Nf)); in PetscDSCopyEquations()
3808 …tscCheck(Nf == Ng, PetscObjectComm((PetscObject)prob), PETSC_ERR_ARG_SIZ, "Number of fields must m… in PetscDSCopyEquations()
3862 PetscInt Nf, f; in PetscDSCopyExactSolutions() local
3867 PetscCall(PetscDSGetNumFields(ds, &Nf)); in PetscDSCopyExactSolutions()
3868 for (f = 0; f < Nf; ++f) { in PetscDSCopyExactSolutions()
3896 PetscInt Nf, f; in PetscDSCopyBounds() local
3901 PetscCall(PetscDSGetNumFields(ds, &Nf)); in PetscDSCopyBounds()
3902 for (f = 0; f < Nf; ++f) { in PetscDSCopyBounds()
3914 PetscInt cdim, Nf, f, d; in PetscDSCopy() local
3924 PetscCall(PetscDSGetNumFields(ds, &Nf)); in PetscDSCopy()
3925 for (f = 0; f < Nf; ++f) { in PetscDSCopy()
3933 if (Nf) { in PetscDSCopy()
3948 PetscInt dim, Nf, f; in PetscDSGetHeightSubspace() local
3957 PetscCall(PetscDSGetNumFields(prob, &Nf)); in PetscDSGetHeightSubspace()
3967 for (f = 0; f < Nf; ++f) { in PetscDSGetHeightSubspace()
4010 PetscInt Nf; in PetscDSGetDiscType_Internal() local
4016 PetscCall(PetscDSGetNumFields(ds, &Nf)); in PetscDSGetDiscType_Internal()
4017 …PetscCheck(f < Nf, PetscObjectComm((PetscObject)ds), PETSC_ERR_ARG_SIZ, "Field %" PetscInt_FMT " m… in PetscDSGetDiscType_Internal()