Home
last modified time | relevance | path

Searched refs:vs (Results 1 – 25 of 28) sorted by relevance

12

/petsc/src/mat/impls/nest/
H A Dmatnest.c403 Mat_Nest *vs = (Mat_Nest *)A->data; in MatReset_Nest() local
408 PetscCall(MatNestDestroyISList(vs->nr, &vs->isglobal.row)); in MatReset_Nest()
409 PetscCall(MatNestDestroyISList(vs->nc, &vs->isglobal.col)); in MatReset_Nest()
410 PetscCall(MatNestDestroyISList(vs->nr, &vs->islocal.row)); in MatReset_Nest()
411 PetscCall(MatNestDestroyISList(vs->nc, &vs->islocal.col)); in MatReset_Nest()
413 PetscCall(PetscFree(vs->row_len)); in MatReset_Nest()
414 PetscCall(PetscFree(vs->col_len)); in MatReset_Nest()
415 PetscCall(PetscFree(vs->nnzstate)); in MatReset_Nest()
417 PetscCall(PetscFree2(vs->left, vs->right)); in MatReset_Nest()
420 if (vs->m) { in MatReset_Nest()
[all …]
/petsc/src/mat/utils/
H A Daxpy.c218 PetscInt vs = 100; in MatAXPY_Basic() local
220 PetscCall(PetscMalloc1(vs, &val)); in MatAXPY_Basic()
223 if (vs < ncols) { in MatAXPY_Basic()
224 vs = PetscMin(2 * ncols, n); in MatAXPY_Basic()
225 PetscCall(PetscRealloc(vs * sizeof(*val), &val)); in MatAXPY_Basic()
273 PetscInt vs = 100; in MatAXPY_BasicWithPreallocation() local
275 PetscCall(PetscMalloc1(vs, &val)); in MatAXPY_BasicWithPreallocation()
282 if (vs < ncols) { in MatAXPY_BasicWithPreallocation()
283 vs = PetscMin(2 * ncols, n); in MatAXPY_BasicWithPreallocation()
284 PetscCall(PetscRealloc(vs * sizeof(*val), &val)); in MatAXPY_BasicWithPreallocation()
/petsc/src/vec/vec/impls/seq/
H A Dbvec2.c563 Vec_Seq *vs = (Vec_Seq *)x->data; in VecResetPreallocationCOO_Seq() local
566 if (vs) { in VecResetPreallocationCOO_Seq()
567 PetscCall(PetscFree(vs->jmap1)); /* Destroy old stuff */ in VecResetPreallocationCOO_Seq()
568 PetscCall(PetscFree(vs->perm1)); in VecResetPreallocationCOO_Seq()
578 Vec_Seq *vs = (Vec_Seq *)x->data; in VecSetPreallocationCOO_Seq() local
610 vs->coo_n = coo_n; in VecSetPreallocationCOO_Seq()
611 vs->tot1 = coo_n - nneg; in VecSetPreallocationCOO_Seq()
612 vs->jmap1 = jmap1; /* [m+1] */ in VecSetPreallocationCOO_Seq()
613 vs->perm1 = perm1; /* [tot] */ in VecSetPreallocationCOO_Seq()
619 Vec_Seq *vs = (Vec_Seq *)x->data; in VecSetValuesCOO_Seq() local
[all …]
/petsc/src/snes/tutorials/network/power/
H A DPFReadData.c106 double pg, qg, qt, qb, vs, mbase, pt, pb; in PFReadMatPowerData() local
108 …sscanf(line, "%d %lf %lf %lf %lf %lf %lf %d %lf %lf", &bus_i, &pg, &qg, &qt, &qb, &vs, &mbase, &st… in PFReadMatPowerData()
115 Gen[geni].vs = vs; in PFReadMatPowerData()
124 Bus[intbusnum].vm = Gen[geni].vs; in PFReadMatPowerData()
H A Dpower.h82 PetscScalar vs; /* Regulated voltage setpoint: pu */ member
H A Dpffunctions.c383 xarr[offset + 1] = gen->vs; in SetInitialGuess_Power()
H A Dpower2.c397 xarr[offset + 1] = gen->vs; in SetInitialValues_Subnet()
/petsc/src/vec/vec/impls/nest/
H A Dvecnest.c6 Vec_Nest *vs = (Vec_Nest *)v->data; in VecAssemblyBegin_Nest() local
10 for (i = 0; i < vs->nb; i++) { in VecAssemblyBegin_Nest()
11 …PetscCheck(vs->v[i], PetscObjectComm((PetscObject)v), PETSC_ERR_SUP, "Nest vector cannot contain … in VecAssemblyBegin_Nest()
12 PetscCall(VecAssemblyBegin(vs->v[i])); in VecAssemblyBegin_Nest()
19 Vec_Nest *vs = (Vec_Nest *)v->data; in VecAssemblyEnd_Nest() local
23 for (i = 0; i < vs->nb; i++) PetscCall(VecAssemblyEnd(vs->v[i])); in VecAssemblyEnd_Nest()
29 Vec_Nest *vs = (Vec_Nest *)v->data; in VecDestroy_Nest() local
33 if (vs->v) { in VecDestroy_Nest()
34 for (i = 0; i < vs->nb; i++) PetscCall(VecDestroy(&vs->v[i])); in VecDestroy_Nest()
35 PetscCall(PetscFree(vs->v)); in VecDestroy_Nest()
[all …]
/petsc/src/dm/impls/plex/exodusii/
H A Dplexexodusii2.c1133 PetscInt i, vs, vsSize; in DMView_PlexExodusII() local
1141 for (vs = 0; vs < num_vs; ++vs) { in DMView_PlexExodusII()
1142 PetscCall(DMLabelGetStratumIS(vsLabel, vsIdx[vs], &stratumIS)); in DMView_PlexExodusII()
1147 PetscCallExternal(ex_put_set_param, exo->exoid, EX_NODE_SET, vsIdx[vs], vsSize, 0); in DMView_PlexExodusII()
1148 PetscCallExternal(ex_put_set, exo->exoid, EX_NODE_SET, vsIdx[vs], nodeList, NULL); in DMView_PlexExodusII()
1790 int vs, v; in DMPlexCreateExodus() local
1801 for (vs = 0; vs < num_vs; ++vs) { in DMPlexCreateExodus()
1802 PetscCallExternal(ex_get_set_param, exoid, EX_NODE_SET, vs_id[vs], &num_vertex_in_set, NULL); in DMPlexCreateExodus()
1804 PetscCallExternal(ex_get_set, exoid, EX_NODE_SET, vs_id[vs], vs_vertex_list, NULL); in DMPlexCreateExodus()
1805 …(DMSetLabelValue_Fast(*dm, &vertSets, "Vertex Sets", vs_vertex_list[v] + numCells - 1, vs_id[vs])); in DMPlexCreateExodus()
/petsc/src/tao/leastsquares/tutorials/
H A DtomographyGenerateData.m31 %% Compare Groundtruth vs BRGN reconstruction vs (optional TwIST result)
/petsc/src/dm/field/impls/ds/
H A Ddmfieldds.c321 PetscScalar vs[3]; in DMFieldEvaluate_DS() local
324 vs[d] = 0.; in DMFieldEvaluate_DS()
325 …for (e = 0; e < dimR; e++) vs[d] += invJ[dimR * dimR * p + e * dimR + d] * cD[(nc * p + g) * dimR … in DMFieldEvaluate_DS()
327 for (d = 0; d < dimR; d++) cD[(nc * p + g) * dimR + d] = vs[d]; in DMFieldEvaluate_DS()
352 PetscScalar vs[3]; in DMFieldEvaluate_DS() local
355 vs[d] = 0.; in DMFieldEvaluate_DS()
356 …for (e = 0; e < dimR; e++) vs[d] += invJ[dimR * dimR * p + e * dimR + d] * cH[(nc * dimR * p + g) … in DMFieldEvaluate_DS()
358 for (d = 0; d < dimR; d++) cH[(nc * dimR * p + g) * dimR + d] = vs[d]; in DMFieldEvaluate_DS()
362 PetscScalar vs[3]; in DMFieldEvaluate_DS() local
365 vs[d] = 0.; in DMFieldEvaluate_DS()
[all …]
/petsc/src/ksp/ksp/impls/gmres/
H A Dgmres.c299 static PetscErrorCode KSPGMRESBuildSoln(PetscScalar *nrs, Vec vs, Vec vdest, KSP ksp, PetscInt it) in KSPGMRESBuildSoln() argument
310 PetscCall(VecCopy(vs, vdest)); /* VecCopy() is smart, exists immediately if vguess == vdest */ in KSPGMRESBuildSoln()
340 if (vdest != vs) PetscCall(VecCopy(vs, vdest)); in KSPGMRESBuildSoln()
/petsc/src/ksp/ksp/utils/dm/
H A Ddmproject.c1083 PetscInt xs[3], vs[3]; in DMSwarmRemap_Colella_Internal() local
1091 vs[d] = PetscFloorReal((vp - vmin[d]) / hv[d]); in DMSwarmRemap_Colella_Internal()
1095 …cdim + 0]), vcdim > 1 ? (double)PetscRealPart(v[p * vcdim + 1]) : 0., xs[0], xs[1], vs[0], vs[1])); in DMSwarmRemap_Colella_Internal()
1104 for (PetscInt vi = PetscMax(vs[0] - 1, 0); vi < PetscMin(vs[0] + 3, vend[0]); ++vi) { in DMSwarmRemap_Colella_Internal()
1106 for (PetscInt vj = PetscMax(vs[1] - 1, 0); vj < PetscMin(vs[1] + 3, vend[1]); ++vj) { in DMSwarmRemap_Colella_Internal()
/petsc/src/ksp/ksp/impls/cg/pipecg2/
H A Dpipecg2.c82 …w, Vec vp, Vec vq, Vec vc, Vec vd, Vec vg0, Vec vh0, Vec vg1, Vec vh1, Vec vs, Vec va1, Vec vb1, V… in VecMergedOpsShort_Private() argument
102 PetscCall(VecGetArray(vs, (PetscScalar **)&ps)); in VecMergedOpsShort_Private()
292 PetscCall(VecRestoreArray(vs, (PetscScalar **)&ps)); in VecMergedOpsShort_Private()
304 …w, Vec vp, Vec vq, Vec vc, Vec vd, Vec vg0, Vec vh0, Vec vg1, Vec vh1, Vec vs, Vec va1, Vec vb1, V… in VecMergedOps_Private() argument
324 PetscCall(VecGetArray(vs, (PetscScalar **)&ps)); in VecMergedOps_Private()
521 PetscCall(VecRestoreArray(vs, (PetscScalar **)&ps)); in VecMergedOps_Private()
/petsc/src/vec/vec/impls/seq/seqviennacl/
H A Dvecviennacl.cxx286 Vec_Seq *vs = (Vec_Seq *)v->data; in VecDestroy_SeqViennaCL_Private() local
291 if (vs->array_allocated) PetscCall(PetscFree(vs->array_allocated)); in VecDestroy_SeqViennaCL_Private()
292 PetscCall(PetscFree(vs)); in VecDestroy_SeqViennaCL_Private()
/petsc/src/ksp/ksp/impls/gmres/dgmres/
H A Ddgmres.c319 static PetscErrorCode KSPDGMRESBuildSoln(PetscScalar *nrs, Vec vs, Vec vdest, KSP ksp, PetscInt it) in KSPDGMRESBuildSoln() argument
330 PetscCall(VecCopy(vs, vdest)); /* VecCopy() is smart, exists immediately if vguess == vdest */ in KSPDGMRESBuildSoln()
356 if (vdest != vs) PetscCall(VecCopy(vs, vdest)); in KSPDGMRESBuildSoln()
/petsc/doc/changes/
H A D320.md135 …ations that can only be inspected at runtime (i.e. MatNest with AIJ blocks vs MatNest with SHELL b…
/petsc/doc/manual/
H A Dperformance.md35 ### Memory Bandwidth vs. Processes
342 vs. farther apart to maximize available resources (memory channels,
391 ### Debug vs. Optimized Builds
H A Dstreams.md317 GAMG server parallel efficiency vs STREAMS
/petsc/src/snes/tutorials/network/
H A Dex1.c306 xarr[offset + 1] = gen->vs; in SetInitialGuess()
/petsc/doc/developers/
H A Dobjects.md410 opposed to `_p_<class>`, for example, `_n_PetscFunctionList` vs `_p_Vec`.
H A Dstyle.md467 for guidance of when to use `PetscCheck()` vs. `PetscAssert()`.
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DSpace.pyx918 Whether the dual space has tensor layout (vs. simplicial).
/petsc/
H A Dgmakefile.test226 # link line constructed differently for gmakefile vs gmakefile.test invocation
/petsc/src/dm/impls/plex/
H A Dplexsubmesh.c1510 PetscInt econeSize, r, vs, vu; in DMPlexConstructCohesiveCells_Internal() local
1515 … PetscCall(PetscFindInt(econe[r], numSplitPoints[dep - 2], splitPoints[dep - 2], &vs)); in DMPlexConstructCohesiveCells_Internal()
1517 if (vs >= 0) continue; in DMPlexConstructCohesiveCells_Internal()

12