Lines Matching refs:nsteps
8 PetscInt nsteps; /* number of time steps */ member
246 aircraft.nsteps = 10; /* number of steps */ in main()
251 PetscCall(PetscOptionsGetInt(NULL, NULL, "-nsteps", &aircraft.nsteps, NULL)); in main()
271 PetscCall(MatSetSizes(aircraft.Jacp, PETSC_DECIDE, PETSC_DECIDE, 2, 2 * aircraft.nsteps)); in main()
275 …PetscCall(MatCreateDense(PETSC_COMM_WORLD, PETSC_DECIDE, PETSC_DECIDE, 2 * aircraft.nsteps, 1, NUL… in main()
297 PetscCall(VecSetSizes(aircraft.V, PETSC_DECIDE, aircraft.nsteps)); in main()
330 PetscCall(TSSetTimeStep(aircraft.ts, aircraft.ftime / aircraft.nsteps)); in main()
335 for (i = 0; i < aircraft.nsteps; i++) { in main()
343 for (i = 0; i < aircraft.nsteps; i++) { in main()
349 for (i = 0; i < aircraft.nsteps; i++) { in main()
362 …ell(PETSC_COMM_WORLD, PETSC_DECIDE, PETSC_DECIDE, 2 * aircraft.nsteps, 2 * aircraft.nsteps, (void … in main()
367 …MPI_COMM_WORLD, PETSC_DETERMINE, PETSC_DETERMINE, 2 * aircraft.nsteps, 2 * aircraft.nsteps, NULL, … in main()
448 for (i = 0; i < actx->nsteps; i++) { in FormObjFunctionGradient()
459 PetscCall(TSSetTimeStep(ts, actx->ftime / actx->nsteps)); in FormObjFunctionGradient()
501 for (i = 0; i < actx->nsteps; i++) { in FormObjHessian()
509 PetscCall(PetscMalloc1(2 * actx->nsteps, &harr)); in FormObjHessian()
510 PetscCall(PetscMalloc1(2 * actx->nsteps, &cols)); in FormObjHessian()
511 for (i = 0; i < 2 * actx->nsteps; i++) cols[i] = i; in FormObjHessian()
513 for (i = 0; i < 2 * actx->nsteps; i++) { in FormObjHessian()
520 PetscCall(MatSetValues(H, 1, ind, 2 * actx->nsteps, cols, harr, INSERT_VALUES)); in FormObjHessian()
545 for (i = 0; i < actx->nsteps; i++) { in MatrixFreeObjHessian()
583 PetscCall(TSSetTimeStep(ts, actx->ftime / actx->nsteps)); in ComputeObjHessianWithSOA()
616 for (i = 0; i < 2 * actx->nsteps; i++) arr[i] = z_ptr[i]; in ComputeObjHessianWithSOA()