Searched refs:cellw (Results 1 – 2 of 2) sorted by relevance
| /petsc/src/ts/tutorials/hamiltonian/ |
| H A D | ex2.c | 683 Vec cellv, cellw; in MonitorVelocity() local 692 PetscCall(VecCreate(PETSC_COMM_SELF, &cellw)); in MonitorVelocity() 693 PetscCall(VecSetSizes(cellw, Npc, Npc)); in MonitorVelocity() 694 PetscCall(VecSetFromOptions(cellw)); in MonitorVelocity() 696 PetscCall(VecGetArrayWrite(cellw, &cellaw)); in MonitorVelocity() 705 PetscCall(VecRestoreArrayWrite(cellw, &cellaw)); in MonitorVelocity() 706 PetscCall(VecScale(cellw, 1. / totWgt)); in MonitorVelocity() 707 PetscCall(PetscProbComputeKSStatisticWeighted(cellv, cellw, cdf, &ksa[c - cStart])); in MonitorVelocity() 709 PetscCall(VecDestroy(&cellw)); in MonitorVelocity()
|
| H A D | ex4.c | 1199 Vec cellv, cellw; in MonitorVelocity() local 1208 PetscCall(VecCreate(PETSC_COMM_SELF, &cellw)); in MonitorVelocity() 1209 PetscCall(VecSetSizes(cellw, Npc, Npc)); in MonitorVelocity() 1210 PetscCall(VecSetFromOptions(cellw)); in MonitorVelocity() 1212 PetscCall(VecGetArrayWrite(cellw, &cellaw)); in MonitorVelocity() 1221 PetscCall(VecRestoreArrayWrite(cellw, &cellaw)); in MonitorVelocity() 1222 PetscCall(VecScale(cellw, 1. / totWgt)); in MonitorVelocity() 1223 PetscCall(PetscProbComputeKSStatisticWeighted(cellv, cellw, cdf, &ksa[c - cStart])); in MonitorVelocity() 1225 PetscCall(VecDestroy(&cellw)); in MonitorVelocity()
|