Home
last modified time | relevance | path

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

/petsc/src/ts/tutorials/hamiltonian/
H A Dex2.c684 PetscScalar *cella, *cellaw; in MonitorVelocity() local
695 PetscCall(VecGetArrayWrite(cellv, &cella)); in MonitorVelocity()
700 for (PetscInt d = 0; d < dim; ++d) cella[q * dim + d] = vel[p * dim + d]; in MonitorVelocity()
704 PetscCall(VecRestoreArrayWrite(cellv, &cella)); in MonitorVelocity()
H A Dex4.c1200 PetscScalar *cella, *cellaw; in MonitorVelocity() local
1211 PetscCall(VecGetArrayWrite(cellv, &cella)); in MonitorVelocity()
1216 for (PetscInt d = 0; d < dim; ++d) cella[q * dim + d] = vel[p * dim + d]; in MonitorVelocity()
1220 PetscCall(VecRestoreArrayWrite(cellv, &cella)); in MonitorVelocity()