Lines Matching refs:z_ptr
598 const PetscScalar *z_ptr; in Adjoint2() local
611 PetscCall(VecGetArrayRead(P, &z_ptr)); in Adjoint2()
612 ctx->mu = z_ptr[0]; in Adjoint2()
613 PetscCall(VecRestoreArrayRead(P, &z_ptr)); in Adjoint2()
637 PetscCall(VecGetArrayRead(ctx->U, &z_ptr)); in Adjoint2()
639 y_ptr[0] = 2. * (z_ptr[0] - ctx->ob[0]); in Adjoint2()
640 y_ptr[1] = 2. * (z_ptr[1] - ctx->ob[1]); in Adjoint2()
642 PetscCall(VecRestoreArrayRead(ctx->U, &z_ptr)); in Adjoint2()
666 PetscCall(VecGetArrayRead(ctx->Mup2[0], &z_ptr)); in Adjoint2()
668 arr[0] = x_ptr[1] * dzdp2 + y_ptr[1] * dzdp2 + z_ptr[0]; in Adjoint2()
672 PetscCall(VecRestoreArrayRead(ctx->Mup2[0], &z_ptr)); in Adjoint2()