Home
last modified time | relevance | path

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

/petsc/src/dm/impls/plex/tutorials/
H A Dex20.c15 Vec Vecxyz[3] = {NULL, NULL, NULL}; in main() local
66 PetscCall(DMCreateGlobalVector(dm, &Vecxyz[d])); in main()
67 …PetscCall(PetscObjectSetName((PetscObject)Vecxyz[d], d == 0 ? "x_coordinate" : (d == 1 ? "y_coordi… in main()
86 PetscCall(DMLocalToGlobal(dm, loc_vec, INSERT_VALUES, Vecxyz[d])); in main()
88 PetscCall(VecGetSize(Vecxyz[d], &n_state_global)); in main()
111 PetscCall(DMCreateGlobalVector(dm, &Vecxyz[d])); in main()
112 PetscCall(VecSetFromOptions(Vecxyz[d])); in main()
113 …PetscCall(PetscObjectSetName((PetscObject)Vecxyz[d], d == 0 ? "x_coordinate" : (d == 1 ? "y_coordi… in main()
114 PetscCall(VecStrideGather(coord, d, Vecxyz[d], INSERT_VALUES)); in main()
115 PetscCall(VecGetSize(Vecxyz[d], &n_state_global)); in main()
[all …]
/petsc/src/dm/impls/plex/kokkos/
H A Dplexlocalizationletkf.kokkos.cxx69 …scInt n_obs_vertex, const PetscInt n_obs_local, const PetscInt n_dof, Vec Vecxyz[3], Mat H, Mat *Q) in DMPlexGetLETKFLocalizationMatrix()
86 if (Vecxyz[d]) dim++; in DMPlexGetLETKFLocalizationMatrix()
93 PetscCall(VecGetSize(Vecxyz[0], &n_state_global)); in DMPlexGetLETKFLocalizationMatrix()
94 PetscCall(VecGetLocalSize(Vecxyz[0], &n_state_local)); in DMPlexGetLETKFLocalizationMatrix()
109 PetscCall(MatMult(H, Vecxyz[d], obs_vecs[d])); in DMPlexGetLETKFLocalizationMatrix()
135 PetscCall(VecGetArrayRead(Vecxyz[d], &local_coords_array)); in DMPlexGetLETKFLocalizationMatrix()
138 PetscCall(VecRestoreArrayRead(Vecxyz[d], &local_coords_array)); in DMPlexGetLETKFLocalizationMatrix()
166 PetscCall(VecGetOwnershipRange(Vecxyz[0], &rstart, NULL)); in DMPlexGetLETKFLocalizationMatrix()