Home
last modified time | relevance | path

Searched refs:cellv (Results 1 – 2 of 2) sorted by relevance

/petsc/src/ts/tutorials/hamiltonian/
H A Dex2.c683 Vec cellv, cellw; in MonitorVelocity() local
688 PetscCall(VecCreate(PETSC_COMM_SELF, &cellv)); in MonitorVelocity()
689 PetscCall(VecSetBlockSize(cellv, dim)); in MonitorVelocity()
690 PetscCall(VecSetSizes(cellv, Npc * dim, Npc)); in MonitorVelocity()
691 PetscCall(VecSetFromOptions(cellv)); in MonitorVelocity()
695 PetscCall(VecGetArrayWrite(cellv, &cella)); in MonitorVelocity()
704 PetscCall(VecRestoreArrayWrite(cellv, &cella)); in MonitorVelocity()
707 PetscCall(PetscProbComputeKSStatisticWeighted(cellv, cellw, cdf, &ksa[c - cStart])); in MonitorVelocity()
708 PetscCall(VecDestroy(&cellv)); in MonitorVelocity()
H A Dex4.c1199 Vec cellv, cellw; in MonitorVelocity() local
1204 PetscCall(VecCreate(PETSC_COMM_SELF, &cellv)); in MonitorVelocity()
1205 PetscCall(VecSetBlockSize(cellv, dim)); in MonitorVelocity()
1206 PetscCall(VecSetSizes(cellv, Npc * dim, Npc)); in MonitorVelocity()
1207 PetscCall(VecSetFromOptions(cellv)); in MonitorVelocity()
1211 PetscCall(VecGetArrayWrite(cellv, &cella)); in MonitorVelocity()
1220 PetscCall(VecRestoreArrayWrite(cellv, &cella)); in MonitorVelocity()
1223 PetscCall(PetscProbComputeKSStatisticWeighted(cellv, cellw, cdf, &ksa[c - cStart])); in MonitorVelocity()
1224 PetscCall(VecDestroy(&cellv)); in MonitorVelocity()