Lines Matching refs:ff
183 PetscScalar *ff; in FormFunction1() local
194 PetscCall(VecGetArray(f, &ff)); in FormFunction1()
199 ff[0] = xx[0] * xx[0] + xx[0] * xx[1] - 3.0; in FormFunction1()
200 ff[1] = xx[0] * xx[1] + xx[1] * xx[1] - 6.0; in FormFunction1()
206 PetscCall(VecRestoreArray(f, &ff)); in FormFunction1()
262 PetscScalar *ff; in FormFunction2() local
273 PetscCall(VecGetArray(f, &ff)); in FormFunction2()
278 ff[0] = PetscSinScalar(3.0 * xx[0]) + xx[0]; in FormFunction2()
279 ff[1] = xx[1]; in FormFunction2()
285 PetscCall(VecRestoreArray(f, &ff)); in FormFunction2()
509 Vec *xx, *ff, x1, x2, f1, f2; in FormFunction1_block() local
516 PetscCall(VecNestGetSubVecs(f, &nb, &ff)); in FormFunction1_block()
517 f1 = ff[0]; in FormFunction1_block()
518 f2 = ff[1]; in FormFunction1_block()
591 PetscScalar *ff; in FormFunction2_block() local
603 PetscCall(VecGetArray(f, &ff)); in FormFunction2_block()
608 ff[0] = PetscSinScalar(3.0 * xx[0]) + xx[0]; in FormFunction2_block()
609 ff[1] = xx[1]; in FormFunction2_block()
615 PetscCall(VecRestoreArray(f, &ff)); in FormFunction2_block()