| /petsc/src/snes/utils/ |
| H A D | convest.c | 148 PetscInt Nf, f, Nds, s; in PetscConvEstSetUp() local 151 PetscCall(DMGetNumFields(ce->idm, &Nf)); in PetscConvEstSetUp() 152 ce->Nf = PetscMax(Nf, 1); in PetscConvEstSetUp() 153 PetscCall(PetscMalloc2((ce->Nr + 1) * ce->Nf, &ce->dofs, (ce->Nr + 1) * ce->Nf, &ce->errors)); in PetscConvEstSetUp() 154 PetscCall(PetscCalloc3(ce->Nf, &ce->initGuess, ce->Nf, &ce->exactSol, ce->Nf, &ce->ctxs)); in PetscConvEstSetUp() 155 for (f = 0; f < Nf; ++f) ce->initGuess[f] = zero_private; in PetscConvEstSetUp() 173 …for (f = 0; f < Nf; ++f) PetscCheck(ce->exactSol[f], PetscObjectComm((PetscObject)ce), PETSC_ERR_A… in PetscConvEstSetUp() 221 PetscInt *dofs = &ce->dofs[r * ce->Nf]; in PetscConvEstMonitorDefault() 222 PetscReal *errors = &ce->errors[r * ce->Nf]; in PetscConvEstMonitorDefault() 226 if (ce->Nf > 1) PetscCall(PetscPrintf(comm, "[")); in PetscConvEstMonitorDefault() [all …]
|
| H A D | dmplexsnes.c | 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() [all …]
|
| /petsc/src/dm/dt/space/impls/ptrimmed/ |
| H A D | spaceptrimmed.c | 58 PetscInt Nf; in PetscSpaceSetUp_Ptrimmed() local 63 PetscCall(PetscDTBinomialInt(sp->Nv, PetscAbsInt(pt->formDegree), &Nf)); in PetscSpaceSetUp_Ptrimmed() 64 if (sp->Nc == PETSC_DETERMINE) sp->Nc = Nf; in PetscSpaceSetUp_Ptrimmed() 65 …Nf == 0, PetscObjectComm((PetscObject)sp), PETSC_ERR_ARG_INCOMP, "Number of components %" PetscInt… in PetscSpaceSetUp_Ptrimmed() 66 if (sp->Nc != Nf) { in PetscSpaceSetUp_Ptrimmed() 68 PetscInt nCopies = sp->Nc / Nf; in PetscSpaceSetUp_Ptrimmed() 90 PetscCall(PetscSpaceSetNumComponents(subsp, Nf)); in PetscSpaceSetUp_Ptrimmed() 117 PetscInt Nf; in PetscSpaceGetDimension_Ptrimmed() local 124 PetscCall(PetscDTBinomialInt(sp->Nv, PetscAbsInt(pt->formDegree), &Nf)); in PetscSpaceGetDimension_Ptrimmed() 125 *dim *= (sp->Nc / Nf); in PetscSpaceGetDimension_Ptrimmed() [all …]
|
| /petsc/src/dm/dt/tests/ |
| H A D | ex13.c | 9 PetscInt Nf; // Number of form components in constructTabulationAndMass() local 15 PetscCall(PetscDTBinomialInt(dim, PetscAbsInt(form), &Nf)); in constructTabulationAndMass() 18 PetscCall(PetscMalloc1(Nbpt * Nf * Nk * npoints, &p_trimmed)); in constructTabulationAndMass() 28 for (PetscInt f = 0; f < Nf; f++) { in constructTabulationAndMass() 29 const PetscReal *p_i = &p_trimmed[(i * Nf + f) * Nk * npoints]; in constructTabulationAndMass() 30 const PetscReal *p_j = &p_trimmed[(j * Nf + f) * Nk * npoints]; in constructTabulationAndMass() 38 *_Nf = Nf; in constructTabulationAndMass() 51 PetscInt Nf; // Number of form components in test() local 74 …lationAndMass(dim, deg, form, jetDegree, npoints, points, weights, &Nbpt, &Nf, &Nk, &p_trimmed, &M… in test() 103 PetscCall(PetscCalloc1(Nbpt * Nbp * Nf, &M_moments)); in test() [all …]
|
| /petsc/src/dm/dt/interface/ |
| H A D | dtds.c | 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() [all …]
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexsection.c | 7 PetscInt depth, Nf, f, pStart, pEnd; in DMPlexCreateSectionFields() local 13 PetscCall(DMGetNumFields(dm, &Nf)); in DMPlexCreateSectionFields() 14 PetscCall(PetscCalloc1(Nf, &isFE)); in DMPlexCreateSectionFields() 15 for (f = 0; f < Nf; ++f) { in DMPlexCreateSectionFields() 29 if (Nf > 0) { in DMPlexCreateSectionFields() 30 PetscCall(PetscSectionSetNumFields(*section, Nf)); in DMPlexCreateSectionFields() 32 for (f = 0; f < Nf; ++f) { in DMPlexCreateSectionFields() 94 PetscInt Nf, f, Nds, n, dim, d, dep, p; in DMPlexCreateSectionDof() local 101 PetscCall(DMGetNumFields(dm, &Nf)); in DMPlexCreateSectionDof() 114 PetscCall(PetscMalloc1(Nf, &isFE)); in DMPlexCreateSectionDof() [all …]
|
| /petsc/src/ts/utils/ |
| H A D | tsconvest.c | 39 for (f = 1; f < ce->Nf; ++f) errors[f] = errors[0]; in PetscConvEstComputeErrorTS_Private() 55 PetscInt Ns, oNs, Nf = ce->Nf, f, Nr = ce->Nr, r; in PetscConvEstGetConvRateTS_Temporal_Private() local 78 PetscCall(PetscConvEstComputeError(ce, r, ce->idm, u, &ce->errors[r * Nf])); in PetscConvEstGetConvRateTS_Temporal_Private() 80 for (f = 0; f < Nf; ++f) { in PetscConvEstGetConvRateTS_Temporal_Private() 81 ce->dofs[r * Nf + f] = 1.0 / dt[r]; in PetscConvEstGetConvRateTS_Temporal_Private() 82 PetscCall(PetscLogEventSetDof(ce->event, f, ce->dofs[r * Nf + f])); in PetscConvEstGetConvRateTS_Temporal_Private() 83 PetscCall(PetscLogEventSetError(ce->event, f, ce->errors[r * Nf + f])); in PetscConvEstGetConvRateTS_Temporal_Private() 91 for (f = 0; f < Nf; ++f) { in PetscConvEstGetConvRateTS_Temporal_Private() 94 y[r] = PetscLog10Real(ce->errors[r * Nf + f]); in PetscConvEstGetConvRateTS_Temporal_Private() 123 PetscInt Nr = ce->Nr, r, Nf = ce->Nf, f, dim, oldlevel, oldnlev; in PetscConvEstGetConvRateTS_Spatial_Private() local [all …]
|
| /petsc/src/dm/dt/fe/tests/ |
| H A D | ex1.c | 39 static void f0_trig_u(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const Petsc… in f0_trig_u() argument 45 static void f1_u(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscInt u… in f1_u() argument 51 static void g3_uu(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscInt … in g3_uu() argument 132 PetscInt Nf, f, maxDegree; in CreateFEGeometry() local 139 PetscCall(PetscDSGetNumFields(ds, &Nf)); in CreateFEGeometry() 146 PetscCall(PetscCalloc2(Nf, quads, Nf, geoms)); in CreateFEGeometry() 147 for (f = 0; f < Nf; ++f) { in CreateFEGeometry() 162 PetscInt Nf, f; in DestroyFEGeometry() local 165 PetscCall(PetscDSGetNumFields(ds, &Nf)); in DestroyFEGeometry() 171 for (f = 0; f < Nf; ++f) { in DestroyFEGeometry() [all …]
|
| H A D | ex2.c | 30 static void f0_trig_u(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const Petsc… in f0_trig_u() argument 36 static void f1_u(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscInt u… in f1_u() argument 42 static void g3_uu(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscInt … in g3_uu() argument 123 PetscInt Nf, f, maxDegree; in CreateFEGeometry() local 130 PetscCall(PetscDSGetNumFields(ds, &Nf)); in CreateFEGeometry() 137 PetscCall(PetscCalloc2(Nf, quads, Nf, geoms)); in CreateFEGeometry() 138 for (f = 0; f < Nf; ++f) { in CreateFEGeometry() 153 PetscInt Nf, f; in DestroyFEGeometry() local 156 PetscCall(PetscDSGetNumFields(ds, &Nf)); in DestroyFEGeometry() 162 for (f = 0; f < Nf; ++f) { in DestroyFEGeometry() [all …]
|
| /petsc/src/tao/tutorials/ |
| H A D | ex2.c | 62 void f0_u(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[]… in f0_u() argument 66 void f0_u_full(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOf… in f0_u_full() argument 70 void f1_u(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[]… in f1_u() argument 75 void g0_uu(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[… in g0_uu() argument 79 void g0_uu_full(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscInt uO… in g0_uu_full() argument 83 void g3_ul(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[… in g3_ul() argument 89 void f0_a(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[]… in f0_a() argument 93 void g0_aa(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[… in g0_aa() argument 97 void g0_al(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[… in g0_al() argument 102 void f0_l(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[]… in f0_l() argument [all …]
|
| H A D | ex1.c | 60 void f0_u(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[]… in f0_u() argument 65 void f1_u(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[]… in f1_u() argument 71 void g0_uu(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[… in g0_uu() argument 76 void g2_ua(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[… in g2_ua() argument 82 void g3_ul(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[… in g3_ul() argument 88 void f0_a(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[]… in f0_a() argument 93 void f1_a(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[]… in f1_a() argument 99 void g0_aa(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[… in g0_aa() argument 104 void f0_l(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[]… in f0_l() argument 109 void f1_l(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[]… in f1_l() argument [all …]
|
| /petsc/src/dm/impls/plex/tutorials/ |
| H A D | ex6.c | 6 PetscInt Nf; /* Number of fields */ member 17 options->Nf = 0; in ProcessOptions() 22 …onsBoundedInt("-num_fields", "The number of fields", "ex6.c", options->Nf, &options->Nf, NULL, 0)); in ProcessOptions() 23 if (options->Nf) { in ProcessOptions() 24 len = options->Nf; in ProcessOptions() 27 …options->Nf), PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Length of components array is %" PetscInt_FMT… in ProcessOptions() 28 len = options->Nf; in ProcessOptions() 31 …= options->Nf), PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Length of order array is %" PetscInt_FMT " … in ProcessOptions() 49 for (f = 0; f < user->Nf; ++f) { in LoadData2D() 78 for (f = 0; f < user->Nf; ++f) { in LoadData3D() [all …]
|
| H A D | dmplexgetrestoreclosureindices.F90 | 18 PetscInt :: cdim, nIdx, idx, cnt, Nf 37 PetscCallA(PetscSectionGetNumFields(gS, Nf, ierr)) 38 allocate (offsets(Nf + 1), source=zero) 46 …PetscCheckA(size(offsets) == (Nf + 1) .and. offsets(1) == zero, PETSC_COMM_WORLD, PETSC_ERR_PLIB, …
|
| H A D | ex8.c | 34 PetscInt dim, Nf = 1, c, cStart, cEnd; in main() local 43 …PetscCall(PetscOptionsBoundedInt("-num_fields", "The number of fields to use", "ex8.c", Nf, &Nf, N… in main() 60 if (Nf == 1) { in main() 65 for (PetscInt f = 0; f < Nf; ++f) { in main() 98 PetscInt Nf, dmf = 0, dsf = -1; in main() local 103 PetscCall(ISGetSize(fieldIS, &Nf)); in main() 104 for (PetscInt f = 0; f < Nf; ++f) { in main()
|
| /petsc/src/ts/tutorials/ |
| H A D | ex18.c | 62 …PetscErrorCode (*initialGuess[2])(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nf, … 179 static void f0_zero_u(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const Petsc… in f0_zero_u() argument 185 static void f0_constant_u(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const P… in f0_constant_u() argument 190 PetscCallAbort(PETSC_COMM_SELF, constant_u_2d(dim, t, x, Nf, wind, NULL)); in f0_constant_u() 194 static void f1_constant_u(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const P… in f1_constant_u() argument 200 static void g0_constant_uu(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const … in g0_constant_uu() argument 206 static void g0_constant_pp(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const … in g0_constant_pp() argument 211 static void f0_lap_u(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscI… in f0_lap_u() argument 217 static void f1_lap_u(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscI… in f1_lap_u() argument 225 static void f0_lap_periodic_u(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], con… in f0_lap_periodic_u() argument [all …]
|
| H A D | ex76.c | 145 static PetscErrorCode quadratic_u(PetscInt Dim, PetscReal time, const PetscReal X[], PetscInt Nf, P… in quadratic_u() argument 151 static PetscErrorCode quadratic_u_t(PetscInt Dim, PetscReal time, const PetscReal X[], PetscInt Nf,… in quadratic_u_t() argument 158 static PetscErrorCode quadratic_p(PetscInt Dim, PetscReal time, const PetscReal X[], PetscInt Nf, P… in quadratic_p() argument 164 static PetscErrorCode quadratic_T(PetscInt Dim, PetscReal time, const PetscReal X[], PetscInt Nf, P… in quadratic_T() argument 169 static PetscErrorCode quadratic_T_t(PetscInt Dim, PetscReal time, const PetscReal X[], PetscInt Nf,… in quadratic_T_t() argument 175 static void f0_quadratic_v(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const … in f0_quadratic_v() argument 183 static void f0_quadratic_w(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const … in f0_quadratic_w() argument 219 static void f0_conduct_quadratic_v(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[]… in f0_conduct_quadratic_v() argument 234 static void f0_conduct_quadratic_q(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[]… in f0_conduct_quadratic_q() argument 242 static void f0_conduct_quadratic_w(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[]… in f0_conduct_quadratic_w() argument [all …]
|
| H A D | ex48.c | 49 …PetscErrorCode (**initialFuncs)(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nf, Pe… 54 PetscInt Nf; member 87 options->Nf = options->modelType == TWO_FILD ? 4 : 2; in ProcessOptions() 112 static void g0_dt(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscInt … in g0_dt() argument 120 static void g0_1(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscInt u… in g0_1() argument 126 static void g1_phi_right(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const Pe… in g1_phi_right() argument 140 static void g1_njz_left(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const Pet… in g1_njz_left() argument 151 static void g1_npsi_right(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const P… in g1_npsi_right() argument 160 static void g1_omega_left(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const P… in g1_omega_left() argument 169 static void g1_psi_left(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const Pet… in g1_psi_left() argument [all …]
|
| H A D | ex46.c | 45 PetscErrorCode mms1_u_2d(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nf, PetscScala… in mms1_u_2d() argument 52 PetscErrorCode mms1_p_2d(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nf, PetscScala… in mms1_p_2d() argument 60 static PetscErrorCode mms2_u_2d(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nf, Pet… in mms2_u_2d() argument 67 static PetscErrorCode mms2_p_2d(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nf, Pet… in mms2_p_2d() argument 73 static void f0_mms1_u(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const Petsc… in f0_mms1_u() argument 89 static void f0_mms2_u(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const Petsc… in f0_mms2_u() argument 105 static void f1_u(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscInt u… in f1_u() argument 117 static void f0_p(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscInt u… in f0_p() argument 123 static void f1_p(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscInt u… in f1_p() argument 132 static void g0_uu(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscInt … in g0_uu() argument [all …]
|
| /petsc/src/dm/ftn-mod/ |
| H A D | petscdmmod.F90 | 115 PetscInt Nf, i 116 call PetscDSGetNumFields(ds, Nf, ierr) 117 allocate (tab(Nf)) 118 do i = 1, Nf 134 PetscInt Nf, i 135 call PetscDSGetNumFields(ds, Nf, ierr) 136 do i = 1, Nf
|
| /petsc/src/snes/tutorials/ |
| H A D | ex64.c | 16 static void u_1(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscInt uO… in u_1() argument 27 static void Ju_1_u1p0(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const Petsc… in Ju_1_u1p0() argument 32 static void Ju_1_u1u1(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const Petsc… in Ju_1_u1u1() argument 45 static void p_0(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscInt uO… in p_0() argument 54 static void Jp_0_p0u1(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const Petsc… in Jp_0_p0u1() argument 59 static void Jp_0_p0p0(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const Petsc… in Jp_0_p0p0() argument 66 static void pJp_0_p0p0(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const Pets… in pJp_0_p0p0() argument 73 static void Jp_0_p0w0(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const Petsc… in Jp_0_p0w0() argument 81 static void w_0(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscInt uO… in w_0() argument 89 static void Jw_0_w0p0(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const Petsc… in Jw_0_w0p0() argument [all …]
|
| H A D | ex76.c | 82 static PetscErrorCode quadratic_u(PetscInt Dim, PetscReal time, const PetscReal X[], PetscInt Nf, P… in quadratic_u() argument 89 static PetscErrorCode linear_p(PetscInt Dim, PetscReal time, const PetscReal X[], PetscInt Nf, Pets… in linear_p() argument 95 static PetscErrorCode linear_T(PetscInt Dim, PetscReal time, const PetscReal X[], PetscInt Nf, Pets… in linear_T() argument 101 static void f0_quadratic_v(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const … in f0_quadratic_v() argument 114 static void f0_quadratic_w(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const … in f0_quadratic_w() argument 142 static PetscErrorCode cubic_u(PetscInt Dim, PetscReal time, const PetscReal X[], PetscInt Nf, Petsc… in cubic_u() argument 149 static PetscErrorCode quadratic_p(PetscInt Dim, PetscReal time, const PetscReal X[], PetscInt Nf, P… in quadratic_p() argument 155 static PetscErrorCode quadratic_T(PetscInt Dim, PetscReal time, const PetscReal X[], PetscInt Nf, P… in quadratic_T() argument 161 static void f0_cubic_v(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const Pets… in f0_cubic_v() argument 174 static void f0_cubic_w(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const Pets… in f0_cubic_w() argument [all …]
|
| H A D | ex24.c | 46 static void f0_u(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscInt u… in f0_u() argument 72 static void f0_linear_u(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const Pet… in f0_linear_u() argument 75 …f0_u(dim, Nf, NfAux, uOff, uOff_x, u, u_t, u_x, aOff, aOff_x, a, a_t, a_x, t, x, numConstants, con… in f0_linear_u() 77 static void f0_bd_linear_q(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const … in f0_bd_linear_q() argument 109 static void f0_quadratic_u(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const … in f0_quadratic_u() argument 112 …f0_u(dim, Nf, NfAux, uOff, uOff_x, u, u_t, u_x, aOff, aOff_x, a, a_t, a_x, t, x, numConstants, con… in f0_quadratic_u() 114 static void f0_bd_quadratic_q(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], con… in f0_bd_quadratic_q() argument 153 static void f0_quartic_u(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const Pe… in f0_quartic_u() argument 158 …f0_u(dim, Nf, NfAux, uOff, uOff_x, u, u_t, u_x, aOff, aOff_x, a, a_t, a_x, t, x, numConstants, con… in f0_quartic_u() 170 static void f0_q(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscInt u… in f0_q() argument [all …]
|
| /petsc/src/dm/impls/plex/tests/ |
| H A D | ex23.c | 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() [all …]
|
| /petsc/include/ |
| H A D | petscdstypes.h | 127 typedef void PetscPointFn(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const P… 158 typedef void PetscPointJacFn(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], cons… 190 typedef void PetscBdPointFn(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const… 224 typedef void PetscBdPointJacFn(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], co… 263 typedef void PetscRiemannFn(PetscInt dim, PetscInt Nf, const PetscReal x[], const PetscReal n[], co…
|
| /petsc/src/dm/dt/interface/ftn-custom/ |
| H A D | zdsf.c | 14 static void ourriemannsolver(PetscInt dim, PetscInt Nf, const PetscReal x[], const PetscReal n[], c… in ourriemannsolver() argument 16 …void (*func)(PetscInt *dim, PetscInt *Nf, const PetscReal x[], const PetscReal n[], const PetscSca… in ourriemannsolver() 19 if (func) (*func)(&dim, &Nf, x, n, uL, uR, &numConstants, constants, flux, _ctx); in ourriemannsolver()
|