Home
last modified time | relevance | path

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

/petsc/src/tao/tutorials/
H A Dex3.c52 PetscInt *bc_indices; member
242 PetscCall(PetscMalloc1(user->num_bc_dofs, &user->bc_indices)); in CreateCtx()
246 for (d = 0; d < dof; ++d) user->bc_indices[k++] = off + d; in CreateCtx()
255 PetscCall(MatZeroRows(user->laplace, user->num_bc_dofs, user->bc_indices, 1.0, NULL, NULL)); in CreateCtx()
286 PetscCall(PetscFree(user->bc_indices)); in DestroyCtx()
306 …PetscCall(VecSetValues(user->tmp1, user->num_bc_dofs, user->bc_indices, user->bc_values, INSERT_VA… in ReducedFunctionGradient()
318 …PetscCall(VecSetValues(user->tmp2, user->num_bc_dofs, user->bc_indices, user->bc_values, INSERT_VA… in ReducedFunctionGradient()