Home
last modified time | relevance | path

Searched refs:vw (Results 1 – 14 of 14) sorted by relevance

/petsc/src/binding/petsc4py/src/lib-petsc/compat/
H A Dhdf5.h12 PetscErrorCode PetscViewerHDF5PushGroup(PETSC_UNUSED PetscViewer vw,PETSC_UNUSED const char g[]){Pe… in PetscViewerHDF5PushGroup() argument
13 PetscErrorCode PetscViewerHDF5PopGroup(PETSC_UNUSED PetscViewer vw){PetscViewerHDF5Error;} in PetscViewerHDF5PopGroup() argument
14 PetscErrorCode PetscViewerHDF5GetGroup(PETSC_UNUSED PetscViewer vw, PETSC_UNUSED const char p[], PE… in PetscViewerHDF5GetGroup() argument
15 PetscErrorCode PetscViewerHDF5PushTimestepping(PETSC_UNUSED PetscViewer vw){PetscViewerHDF5Error;} in PetscViewerHDF5PushTimestepping() argument
16 PetscErrorCode PetscViewerHDF5PopTimestepping(PETSC_UNUSED PetscViewer vw){PetscViewerHDF5Error;} in PetscViewerHDF5PopTimestepping() argument
17 PetscErrorCode PetscViewerHDF5SetTimestep(PETSC_UNUSED PetscViewer vw, PETSC_UNUSED PetscInt n){Pet… in PetscViewerHDF5SetTimestep() argument
18 PetscErrorCode PetscViewerHDF5GetTimestep(PETSC_UNUSED PetscViewer vw, PETSC_UNUSED PetscInt*n){Pet… in PetscViewerHDF5GetTimestep() argument
19 PetscErrorCode PetscViewerHDF5IncrementTimestep(PETSC_UNUSED PetscViewer vw){PetscViewerHDF5Error;} in PetscViewerHDF5IncrementTimestep() argument
/petsc/src/dm/tests/
H A Dex34.c9 PetscViewer vw; in main() local
33 PetscCall(PetscViewerGetSubViewer(PETSC_VIEWER_STDOUT_WORLD, PETSC_COMM_SELF, &vw)); in main()
34 PetscCall(PetscViewerASCIIPrintf(vw, "[%d] lx ly%s\n", rank, dim > 2 ? " lz" : "")); in main()
35 PetscCall(PetscIntView(m, lx, vw)); in main()
36 PetscCall(PetscIntView(n, ly, vw)); in main()
37 if (dim > 2) PetscCall(PetscIntView(n, lz, vw)); in main()
38 PetscCall(PetscViewerRestoreSubViewer(PETSC_VIEWER_STDOUT_WORLD, PETSC_COMM_SELF, &vw)); in main()
/petsc/src/snes/tutorials/
H A Dex21.c114 Vec vw, vu, vlambda, vfw, vfu, vflambda; in FormFunction() local
117 PetscCall(DMCompositeGetLocalVectors(user->packer, &vw, &vu, &vlambda)); in FormFunction()
119 PetscCall(DMCompositeScatter(user->packer, U, vw, vu, vlambda)); in FormFunction()
123 PetscCall(VecGetArray(vw, &w)); in FormFunction()
153 PetscCall(VecRestoreArray(vw, &w)); in FormFunction()
161 PetscCall(DMCompositeRestoreLocalVectors(user->packer, &vw, &vu, &vlambda)); in FormFunction()
H A Dex22.c152 Vec vw, vfw, vu_lambda, vfu_lambda; in ComputeFunction() local
158 PetscCall(DMCompositeGetLocalVectors(packer, &vw, &vu_lambda)); in ComputeFunction()
159 PetscCall(DMCompositeScatter(packer, U, vw, vu_lambda)); in ComputeFunction()
164 PetscCall(VecGetArray(vw, &w)); in ComputeFunction()
192 PetscCall(VecRestoreArray(vw, &w)); in ComputeFunction()
196 PetscCall(DMCompositeRestoreLocalVectors(packer, &vw, &vu_lambda)); in ComputeFunction()
/petsc/src/vec/vec/impls/mpi/mpiviennacl/
H A Dmpiviennacl.cxx112 Vec_MPI *vw, *w = (Vec_MPI *)win->data; in VecDuplicate_MPIViennaCL() local
120 vw = (Vec_MPI *)(*v)->data; in VecDuplicate_MPIViennaCL()
126 …PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, win->map->n + w->nghost, array, &vw->localrep)… in VecDuplicate_MPIViennaCL()
127 vw->localrep->ops[0] = w->localrep->ops[0]; in VecDuplicate_MPIViennaCL()
129 vw->localupdate = w->localupdate; in VecDuplicate_MPIViennaCL()
130 if (vw->localupdate) PetscCall(PetscObjectReference((PetscObject)vw->localupdate)); in VecDuplicate_MPIViennaCL()
/petsc/src/ts/tutorials/power_grid/
H A Dex5.c165 PetscErrorCode GetWindPower(PetscScalar wm, PetscScalar vw, PetscScalar *Pw, AppCtx *user) in GetWindPower() argument
171 lambda = temp * wm / vw; in GetWindPower()
174 *Pw = 0.5 * user->rho * cp * user->Ar * vw * vw * vw / (MVAbase * 1e6); in GetWindPower()
/petsc/src/vec/vec/impls/mpi/
H A Dpbvec.c26 Vec_MPI *vw, *w = (Vec_MPI *)win->data; in VecDuplicateWithArray_MPI() local
32 vw = (Vec_MPI *)(*v)->data; in VecDuplicateWithArray_MPI()
39 …VecCreateSeqWithArray(PETSC_COMM_SELF, win->map->bs, win->map->n + w->nghost, arr, &vw->localrep)); in VecDuplicateWithArray_MPI()
40 vw->localrep->ops[0] = w->localrep->ops[0]; in VecDuplicateWithArray_MPI()
42 vw->localupdate = w->localupdate; in VecDuplicateWithArray_MPI()
43 if (vw->localupdate) PetscCall(PetscObjectReference((PetscObject)vw->localupdate)); in VecDuplicateWithArray_MPI()
45 vw->ghost = w->ghost; in VecDuplicateWithArray_MPI()
46 if (vw->ghost) PetscCall(PetscObjectReference((PetscObject)vw->ghost)); in VecDuplicateWithArray_MPI()
/petsc/src/ksp/ksp/tutorials/
H A Dexample100.py29 def view(self, A, vw): argument
79 def view(self, pc, vw): argument
/petsc/src/ts/tutorials/hamiltonian/
H A Dex3.c336 Vec vx, vv, vw, vE; in MonitorParticles() local
339 PetscCall(VecCreateMPIWithArray(comm, 1, Np, PETSC_DECIDE, w, &vw)); in MonitorParticles()
344 PetscCall(VecView(vw, viewer)); in MonitorParticles()
349 PetscCall(VecDestroy(&vw)); in MonitorParticles()
645 PetscReal vw = 0.; in InitializeWeights() local
664 vw = 1.0; in InitializeWeights()
665 …for (PetscInt d = 0; d < dim; ++d) vw *= 0.5 * (PetscErfReal(vmax[d] / PetscSqrtReal(2.)) - PetscE… in InitializeWeights()
666 …l(vw), PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Particle %" PetscInt_FMT " velocity weight is not no… in InitializeWeights()
669 weight[p] = totalWeight * vw * xw; in InitializeWeights()
671 …" weight exceeded 10: weight=%g, xw=%g, vw=%g, totalWeight=%g", p, weight[p], xw, vw, totalWeight); in InitializeWeights()
[all …]
H A Dex2.c1342 PetscReal vw = 0.; in InitializeWeights() local
1352vw = 0.5 * (PetscErfReal(vcoords[1] / PetscSqrtReal(2.)) - PetscErfReal(vcoords[0] / PetscSqrtReal… in InitializeWeights()
1354 weight[p] = totalWeight * vw * xw; in InitializeWeights()
1356 …ERR_ARG_WRONG, "Particle %" PetscInt_FMT " weight exceeded 1: %g, %g, %g", p, xw, vw, totalWeight); in InitializeWeights()
1358 …scCall(PetscPrintf(comm, "particle %" PetscInt_FMT ": %g, vw: %g xw: %g\n", p, weight[p], vw, xw)); in InitializeWeights()
H A Dex4.c1956 PetscReal vw = 0.; in InitializeWeights() local
1966vw = 0.5 * (PetscErfReal(vcoords[1] / PetscSqrtReal(2.)) - PetscErfReal(vcoords[0] / PetscSqrtReal… in InitializeWeights()
1968 weight[p] = totalWeight * vw * xw; in InitializeWeights()
1970 …ERR_ARG_WRONG, "Particle %" PetscInt_FMT " weight exceeded 1: %g, %g, %g", p, xw, vw, totalWeight); in InitializeWeights()
1972 …scCall(PetscPrintf(comm, "particle %" PetscInt_FMT ": %g, vw: %g xw: %g\n", p, weight[p], vw, xw)); in InitializeWeights()
/petsc/src/binding/petsc4py/test/
H A Dtest_pc_py.py89 def view(self, pc, vw): argument
90 self._log('view', pc, vw)
/petsc/src/ksp/ksp/impls/cg/pipecg2/
H A Dpipecg2.c82 static PetscErrorCode VecMergedOpsShort_Private(Vec vx, Vec vr, Vec vz, Vec vw, Vec vp, Vec vq, Vec… in VecMergedOpsShort_Private() argument
93 PetscCall(VecGetArray(vw, (PetscScalar **)&pw)); in VecMergedOpsShort_Private()
283 PetscCall(VecRestoreArray(vw, (PetscScalar **)&pw)); in VecMergedOpsShort_Private()
304 static PetscErrorCode VecMergedOps_Private(Vec vx, Vec vr, Vec vz, Vec vw, Vec vp, Vec vq, Vec vc, … in VecMergedOps_Private() argument
315 PetscCall(VecGetArray(vw, (PetscScalar **)&pw)); in VecMergedOps_Private()
512 PetscCall(VecRestoreArray(vw, (PetscScalar **)&pw)); in VecMergedOps_Private()
/petsc/share/petsc/datafiles/meshes/
H A Dtestcase3D.cas2201 (vw-stress/interpolate #t)
2783 (vw-stress/extrapolate/cells #t)
3547 (vw-stress/patch 0)