| /petsc/src/dm/dt/space/impls/tensor/ |
| H A D | spacetensor.c | 31 PetscInt Ns, Nc, i, Nv, deg; in PetscSpaceSetFromOptions_Tensor() local 38 PetscCall(PetscSpaceTensorGetNumSubspaces(sp, &Ns)); in PetscSpaceSetFromOptions_Tensor() 40 if (Ns > 1) { in PetscSpaceSetFromOptions_Tensor() 44 for (i = 1; i < Ns; i++) { in PetscSpaceSetFromOptions_Tensor() 54 Ns = (Ns == PETSC_DEFAULT) ? PetscMax(Nv, 1) : Ns; in PetscSpaceSetFromOptions_Tensor() 56 …e_tensor_spaces", "The number of subspaces", "PetscSpaceTensorSetNumSubspaces", Ns, &Ns, NULL, 0)); in PetscSpaceSetFromOptions_Tensor() 59 …Ns >= 0 && (Nv <= 0 || Ns != 0), PetscObjectComm((PetscObject)sp), PETSC_ERR_ARG_OUTOFRANGE, "Cann… in PetscSpaceSetFromOptions_Tensor() 60 …Ns <= Nv, PetscObjectComm((PetscObject)sp), PETSC_ERR_ARG_OUTOFRANGE, "Cannot have a tensor space … in PetscSpaceSetFromOptions_Tensor() 61 if (Ns != tens->numTensSpaces) PetscCall(PetscSpaceTensorSetNumSubspaces(sp, Ns)); in PetscSpaceSetFromOptions_Tensor() 63 PetscInt Nvs = Nv / Ns; in PetscSpaceSetFromOptions_Tensor() [all …]
|
| /petsc/src/dm/dt/space/impls/sum/ |
| H A D | spacesum.c | 162 PetscInt Ns = sum->numSumSpaces; in PetscSpaceSumSetNumSubspaces_Sum() local 166 if (numSumSpaces == Ns) PetscFunctionReturn(PETSC_SUCCESS); in PetscSpaceSumSetNumSubspaces_Sum() 167 if (Ns >= 0) { in PetscSpaceSumSetNumSubspaces_Sum() 169 for (s = 0; s < Ns; ++s) PetscCall(PetscSpaceDestroy(&sum->sumspaces[s])); in PetscSpaceSumSetNumSubspaces_Sum() 173 Ns = sum->numSumSpaces = numSumSpaces; in PetscSpaceSumSetNumSubspaces_Sum() 174 PetscCall(PetscCalloc1(Ns, &sum->sumspaces)); in PetscSpaceSumSetNumSubspaces_Sum() 201 PetscInt Ns = sum->numSumSpaces; in PetscSpaceSumGetSubspace_Sum() local 204 …PetscCheck(Ns >= 0, PetscObjectComm((PetscObject)space), PETSC_ERR_ARG_WRONGSTATE, "Must call Pets… in PetscSpaceSumGetSubspace_Sum() 205 …PetscCheck(s >= 0 && s < Ns, PetscObjectComm((PetscObject)space), PETSC_ERR_ARG_OUTOFRANGE, "Inval… in PetscSpaceSumGetSubspace_Sum() 214 PetscInt Ns = sum->numSumSpaces; in PetscSpaceSumSetSubspace_Sum() local [all …]
|
| /petsc/src/dm/dt/dualspace/impls/sum/ |
| H A D | dualspacesum.c | 162 PetscInt Ns = sum->numSumSpaces; in PetscDualSpaceSumSetNumSubspaces_Sum() local 166 if (numSumSpaces == Ns) PetscFunctionReturn(PETSC_SUCCESS); in PetscDualSpaceSumSetNumSubspaces_Sum() 167 for (PetscInt s = 0; s < Ns; ++s) PetscCall(PetscDualSpaceDestroy(&sum->sumspaces[s])); in PetscDualSpaceSumSetNumSubspaces_Sum() 170 Ns = sum->numSumSpaces = numSumSpaces; in PetscDualSpaceSumSetNumSubspaces_Sum() 171 PetscCall(PetscCalloc1(Ns, &sum->sumspaces)); in PetscDualSpaceSumSetNumSubspaces_Sum() 198 PetscInt Ns = sum->numSumSpaces; in PetscDualSpaceSumGetSubspace_Sum() local 201 …PetscCheck(Ns >= 0, PetscObjectComm((PetscObject)space), PETSC_ERR_ARG_WRONGSTATE, "Must call Pets… in PetscDualSpaceSumGetSubspace_Sum() 202 …PetscCheck(s >= 0 && s < Ns, PetscObjectComm((PetscObject)space), PETSC_ERR_ARG_OUTOFRANGE, "Inval… in PetscDualSpaceSumGetSubspace_Sum() 211 PetscInt Ns = sum->numSumSpaces; in PetscDualSpaceSumSetSubspace_Sum() local 215 …PetscCheck(Ns >= 0, PetscObjectComm((PetscObject)space), PETSC_ERR_ARG_WRONGSTATE, "Must call Pets… in PetscDualSpaceSumSetSubspace_Sum() [all …]
|
| /petsc/src/vec/vec/tests/ |
| H A D | ex2k.c | 37 PetscInt Ns[] = {1, 3, 8, 30}; // try this number of y vectors in VecMDot in main() local 45 ncount = PETSC_STATIC_ARRAY_LENGTH(Ns); // length of Ns[] in main() 46 maxN = Ns[ncount - 1]; // at most this many y vectors in main() 62 …ncount; j++) PetscCall(PetscPrintf(PETSC_COMM_WORLD, " %s-%" PetscInt_FMT " ", testName, Ns[j])); in main() 79 N = Ns[j]; in main() 102 N = Ns[j]; in main()
|
| H A D | ex15k.kokkos.cxx | 39 PetscInt Ns[] = {/* Use explicit sizes so that one can add sizes very close to 2^31 */ in main() local 41 n = nsamples = PETSC_STATIC_ARRAY_LENGTH(Ns); in main() 55 N = Ns[k]; in main()
|
| /petsc/src/dm/impls/swarm/ |
| H A D | swarmpic.c | 834 PetscErrorCode DMSwarmGetNumSpecies(DM sw, PetscInt *Ns) in DMSwarmGetNumSpecies() argument 839 *Ns = swarm->Ns; in DMSwarmGetNumSpecies() 856 PetscErrorCode DMSwarmSetNumSpecies(DM sw, PetscInt Ns) in DMSwarmSetNumSpecies() argument 861 swarm->Ns = Ns; in DMSwarmSetNumSpecies() 991 PetscInt Ns, cStart, cEnd, c, dim, d, Nq, q, Np = 0, p, s; in DMSwarmComputeLocalSize() local 996 PetscCall(DMSwarmGetNumSpecies(sw, &Ns)); in DMSwarmComputeLocalSize() 1006 PetscCall(PetscCalloc2(Ns, &n_int, (cEnd - cStart) * Ns, &npc_s)); in DMSwarmComputeLocalSize() 1015 PetscCall(PetscArrayzero(n_int, Ns)); in DMSwarmComputeLocalSize() 1021 for (s = 0; s < Ns; ++s) { in DMSwarmComputeLocalSize() 1023 n_int[s] += (detJp * den) * (detJ * wq[q]) / (PetscReal)Ns; in DMSwarmComputeLocalSize() [all …]
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexceed.c | 216 for (PetscInt p = 0, Ns; p < Nf; ++p) { in DMPlexGetLocalOffsetsSupport() local 217 PetscCall(DMPlexGetSupportSize(dm, iter_indices[p], &Ns)); in DMPlexGetLocalOffsetsSupport() 218 if (Ns == 2) ++NfInt; in DMPlexGetLocalOffsetsSupport() 237 PetscInt Ns, loc; in DMPlexGetLocalOffsetsSupport() local 240 PetscCall(DMPlexGetSupportSize(dm, face, &Ns)); in DMPlexGetLocalOffsetsSupport() 243 if (Ns == 2) { in DMPlexGetLocalOffsetsSupport() 379 for (PetscInt p = 0, Ns; p < Nf; ++p) PetscCall(DMPlexGetSupportSize(dm, iter_indices[p], &Ns)); in DMPlexCeedComputeGeometryFVM() local
|
| H A D | plexorient.c | 89 PetscInt suppSize, Ns = 0, coneSizeA, coneSizeB, posA = -1, posB = -1; in DMPlexCheckFace_Internal() local 104 indC[Ns] = GetPointIndex(supp[s], cStart, cEnd, cells); in DMPlexCheckFace_Internal() 105 indS[Ns] = s; in DMPlexCheckFace_Internal() 106 if (indC[Ns] >= 0) ++Ns; in DMPlexCheckFace_Internal() 108 if (Ns < 2) PetscFunctionReturn(PETSC_SUCCESS); in DMPlexCheckFace_Internal() 109 …PetscCheck(Ns == 2, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Faces should separate only two cells, n… in DMPlexCheckFace_Internal() 457 PetscInt coneSize, supportSize, Ns = 0, s, l; in DMPlexOrient() local 469 locSupport[Ns++] = support[s]; in DMPlexOrient() 471 if (Ns != 1) continue; in DMPlexOrient() 827 PetscInt coneSize, suppSize, nind, c, Ns = 0; in DMPlexOrientCells_Internal() local [all …]
|
| H A D | plexfvm.c | 26 PetscInt Ns, ncell, d; in DMPlexApplyLimiter_Internal() local 30 PetscCall(DMPlexGetSupportSize(dm, face, &Ns)); in DMPlexApplyLimiter_Internal() 31 if (Ns < 2) { in DMPlexApplyLimiter_Internal()
|
| H A D | plexproject.c | 233 PetscInt Ns, s; in DMProjectPoint_Field_Private() local 236 PetscCall(DMPlexGetSupportSize(dmIn, inp, &Ns)); in DMProjectPoint_Field_Private() 237 for (s = 0; s < Ns; ++s) { in DMProjectPoint_Field_Private() 244 …PetscCheck(s < Ns, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Cohesive cell not found from face %" Pet… in DMProjectPoint_Field_Private() 392 PetscInt Ns, s; in DMProjectPoint_BdField_Private() local 395 PetscCall(DMPlexGetSupportSize(dmIn, inp, &Ns)); in DMProjectPoint_BdField_Private() 396 for (s = 0; s < Ns; ++s) { in DMProjectPoint_BdField_Private() 403 …PetscCheck(s < Ns, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Cohesive cell not found from face %" Pet… in DMProjectPoint_BdField_Private()
|
| /petsc/src/ts/interface/ |
| H A D | tsmon.c | 518 …onst char label[], int x, int y, int m, int n, PetscInt howoften, PetscInt Ns, PetscInt Nb, PetscB… in TSMonitorHGCtxCreate() argument 524 PetscCall(PetscMPIIntCast(Ns, &Nsi)); in TSMonitorHGCtxCreate() 527 PetscCall(PetscMalloc1(Ns, &(*ctx)->hg)); in TSMonitorHGCtxCreate() 536 (*ctx)->Ns = Ns; in TSMonitorHGCtxCreate() 547 for (s = 0; s < (*ctx)->Ns; ++s) PetscCall(PetscDrawHGDestroy(&(*ctx)->hg[s])); in TSMonitorHGCtxDestroy() 1508 PetscInt dim, d = 0, Np, p, Ns, s; in TSMonitorHGSwarmSolution() local 1514 PetscCall(DMSwarmGetNumSpecies(sw, &Ns)); in TSMonitorHGSwarmSolution() 1515 Ns = PetscMin(Ns, ctx->Ns); in TSMonitorHGSwarmSolution() 1522 for (s = 0; s < Ns; ++s) { in TSMonitorHGSwarmSolution() 1531 for (s = 0; s < Ns; ++s) { in TSMonitorHGSwarmSolution() [all …]
|
| H A D | ts.c | 264 PetscInt howoften = 1, Ns = 1; in TSSetFromOptions() local 282 …s_monitor_hg_swarm_species", "Number of species to histogram", "TSMonitorHGSwarm", Ns, &Ns, NULL)); in TSSetFromOptions() 284 …tscObject)ts), NULL, NULL, PETSC_DECIDE, PETSC_DECIDE, 300, 300, howoften, Ns, Nb, velocity, &ctx)… in TSSetFromOptions()
|
| /petsc/src/ts/utils/ |
| H A D | tsconvest.c | 55 PetscInt Ns, oNs, Nf = ce->Nf, f, Nr = ce->Nr, r; in PetscConvEstGetConvRateTS_Temporal_Private() local 63 Ns = oNs; in PetscConvEstGetConvRateTS_Temporal_Private() 67 Ns = PetscCeilReal(Ns * ce->r); in PetscConvEstGetConvRateTS_Temporal_Private() 72 PetscCall(TSSetMaxSteps(ts, Ns)); in PetscConvEstGetConvRateTS_Temporal_Private()
|
| /petsc/src/dm/interface/ |
| H A D | dmceed.c | 466 for (PetscInt p = 0, Ns; p < Nf; ++p) { in DMCeedComputeInfo() local 467 PetscCall(DMPlexGetSupportSize(dm, indices[p], &Ns)); in DMCeedComputeInfo() 468 if (Ns == 2) ++NfInt; in DMCeedComputeInfo() 479 PetscInt Ns; in DMCeedComputeInfo() local 482 PetscCall(DMPlexGetSupportSize(dm, face, &Ns)); in DMCeedComputeInfo() 485 if (Ns == 2) { in DMCeedComputeInfo()
|
| /petsc/src/ts/tutorials/hamiltonian/ |
| H A D | ex3.c | 459 PetscInt dim, xcStart, xcEnd, vcStart, vcEnd, Ns, Np, Npc, debug; in InitializeParticles_Centroid() local 468 PetscCall(DMSwarmGetNumSpecies(sw, &Ns)); in InitializeParticles_Centroid() 469 …tionsInt("-dm_swarm_num_species", "The number of species", "DMSwarmSetNumSpecies", Ns, &Ns, &flg)); in InitializeParticles_Centroid() 470 if (flg) PetscCall(DMSwarmSetNumSpecies(sw, Ns)); in InitializeParticles_Centroid() 485 Npc = (vcEnd - vcStart) * Ns; in InitializeParticles_Centroid() 503 for (PetscInt s = 0; s < Ns; ++s) { in InitializeParticles_Centroid() 504 for (PetscInt q = 0; q < Npc / Ns; ++q, ++p) { in InitializeParticles_Centroid() 527 for (PetscInt s = 0; s < Ns; ++s) { in InitializeParticles_Centroid() 528 for (PetscInt q = 0; q < Npc / Ns; ++q) { in InitializeParticles_Centroid() 529 const PetscInt p = pidx[q * Ns + s]; in InitializeParticles_Centroid() [all …]
|
| H A D | ex2.c | 1161 PetscInt dim, xcStart, xcEnd, vcStart, vcEnd, Ns, Np, Npc, debug; in InitializeParticles_Centroid() local 1170 PetscCall(DMSwarmGetNumSpecies(sw, &Ns)); in InitializeParticles_Centroid() 1171 …tionsInt("-dm_swarm_num_species", "The number of species", "DMSwarmSetNumSpecies", Ns, &Ns, &flg)); in InitializeParticles_Centroid() 1172 if (flg) PetscCall(DMSwarmSetNumSpecies(sw, Ns)); in InitializeParticles_Centroid() 1187 Npc = (vcEnd - vcStart) * Ns; in InitializeParticles_Centroid() 1205 for (PetscInt s = 0; s < Ns; ++s) { in InitializeParticles_Centroid() 1206 for (PetscInt q = 0; q < Npc / Ns; ++q, ++p) { in InitializeParticles_Centroid() 1228 for (PetscInt s = 0; s < Ns; ++s) { in InitializeParticles_Centroid() 1229 for (PetscInt q = 0; q < Npc / Ns; ++q) { in InitializeParticles_Centroid() 1230 const PetscInt p = pidx[q * Ns + s]; in InitializeParticles_Centroid() [all …]
|
| H A D | ex4.c | 1775 PetscInt dim, xcStart, xcEnd, vcStart, vcEnd, Ns, Np, Npc, debug; in InitializeParticles_Centroid() local 1784 PetscCall(DMSwarmGetNumSpecies(sw, &Ns)); in InitializeParticles_Centroid() 1785 …tionsInt("-dm_swarm_num_species", "The number of species", "DMSwarmSetNumSpecies", Ns, &Ns, &flg)); in InitializeParticles_Centroid() 1786 if (flg) PetscCall(DMSwarmSetNumSpecies(sw, Ns)); in InitializeParticles_Centroid() 1801 Npc = (vcEnd - vcStart) * Ns; in InitializeParticles_Centroid() 1819 for (PetscInt s = 0; s < Ns; ++s) { in InitializeParticles_Centroid() 1820 for (PetscInt q = 0; q < Npc / Ns; ++q, ++p) { in InitializeParticles_Centroid() 1842 for (PetscInt s = 0; s < Ns; ++s) { in InitializeParticles_Centroid() 1843 for (PetscInt q = 0; q < Npc / Ns; ++q) { in InitializeParticles_Centroid() 1844 const PetscInt p = pidx[q * Ns + s]; in InitializeParticles_Centroid() [all …]
|
| /petsc/include/petsc/private/ |
| H A D | dmswarmimpl.h | 77 PetscInt Ns; /* The number of particle species */ member
|
| H A D | tsimpl.h | 557 PetscInt Ns; /* The number of species to histogram */ member
|
| /petsc/src/ksp/ksp/utils/dm/ |
| H A D | dmproject.c | 855 PetscInt dim, Ns, Npc, Np, cStart, cEnd, debug; in InitializeParticles_Regular() local 863 PetscCall(DMSwarmGetNumSpecies(sw, &Ns)); in InitializeParticles_Regular() 864 …tionsInt("-dm_swarm_num_species", "The number of species", "DMSwarmSetNumSpecies", Ns, &Ns, &flg)); in InitializeParticles_Regular() 865 if (flg) PetscCall(DMSwarmSetNumSpecies(sw, Ns)); in InitializeParticles_Regular() 876 Npc = Ns * PetscPowInt(n, dim); in InitializeParticles_Regular() 896 for (PetscInt s = 0; s < Ns; ++s) { in InitializeParticles_Regular() 897 for (PetscInt q = 0; q < Npc / Ns; ++q, ++p) { in InitializeParticles_Regular() 941 for (PetscInt s = 0; s < Ns; ++s) { in InitializeParticles_Regular() 942 for (PetscInt q = 0; q < Npc / Ns; ++q) { in InitializeParticles_Regular() 943 const PetscInt p = pidx[q * Ns + s]; in InitializeParticles_Regular()
|
| /petsc/src/ts/event/ |
| H A D | tsevent.c | 616 PetscInt Ns = ts->eval_times->num_time_points; in TSEvent_dt_cap() local 620 …if (idx < Ns && PetscIsCloseAtTol(t, st[idx], ts->eval_times->worktol, 0)) { … in TSEvent_dt_cap() 621 …if (idx + 1 < Ns) maxdt = st[idx + 1] - t; … in TSEvent_dt_cap() 623 …} else if (idx < Ns) maxdt = st[idx] - t; … in TSEvent_dt_cap()
|
| /petsc/src/snes/tutorials/ |
| H A D | ex7.c | 306 PetscInt Ns; in PrintTraversal() local 308 PetscCall(DMPlexGetSupportSize(dm, v, &Ns)); in PrintTraversal() 312 for (PetscInt s = 0; s < Ns; ++s) { in PrintTraversal()
|
| /petsc/src/dm/impls/plex/transform/impls/extrude/ |
| H A D | plextrcohesive.c | 943 PetscInt Ns, neighbor; in OrderCohesiveSupport_Private() local 946 PetscCall(DMPlexGetSupportSize(dm, cone[s], &Ns)); in OrderCohesiveSupport_Private() 948 if (Ns == 1) continue; in OrderCohesiveSupport_Private() 949 …PetscCheck(Ns == 2, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Cohesive cell endcap should have support of … in OrderCohesiveSupport_Private()
|
| /petsc/src/dm/dt/fe/interface/ |
| H A D | fe.c | 2425 PetscInt Ns, s; in PetscFEEvaluateFieldJets_Hybrid_Internal() local 2429 Ns = isCohesive ? 1 : 2; in PetscFEEvaluateFieldJets_Hybrid_Internal() 2439 for (s = 0; s < Ns; ++s) { in PetscFEEvaluateFieldJets_Hybrid_Internal()
|
| /petsc/lib/petsc/bin/maint/abi-compliance-checker/ |
| H A D | abi-compliance-checker.pl | 7720 my ($N, $Ns) = @_; 7721 $N=~s/\b\Q$Ns\E:://g;
|