Lines Matching refs:top
209 PetscReal *g, *x, *left, *right, *bottom, *top; in FormFunctionGradient() local
227 PetscCall(VecGetArray(user->Top, &top)); in FormFunctionGradient()
262 xt = top[i - xs + 1]; in FormFunctionGradient()
263 xlt = top[i - xs]; in FormFunctionGradient()
341 d1 = (x[(gym - 1) * gxm + i - gxs] - top[i - xs + 1]) * rhy; in FormFunctionGradient()
342 d4 = (top[i - xs + 1] - top[i - xs]) * rhx; in FormFunctionGradient()
354 d2 = (top[xm + 1] - top[xm]) * rhx; in FormFunctionGradient()
365 PetscCall(VecRestoreArray(user->Top, &top)); in FormFunctionGradient()
425 PetscReal *x, *left, *right, *bottom, *top; in FormHessian() local
448 PetscCall(VecGetArray(user->Top, &top)); in FormHessian()
485 xt = top[i - xs + 1]; in FormHessian()
486 xlt = top[i - xs]; in FormHessian()
580 PetscCall(VecRestoreArray(user->Top, &top)); in FormHessian()
806 PetscReal *x, *left, *right, *bottom, *top; in MSA_InitialPoint() local
814 PetscCall(VecGetArray(user->Top, &top)); in MSA_InitialPoint()
824 …x[row] = ((j + 1) * bottom[i - xs + 1] / my + (my - j + 1) * top[i - xs + 1] / (my + 2) + (i + 1) … in MSA_InitialPoint()
832 PetscCall(VecRestoreArray(user->Top, &top)); in MSA_InitialPoint()