Lines Matching refs:x0
70 Vec x0; /* The initial particle positions at t = 0 */ member
118 const PetscReal x0 = X[0]; in trig_trig_x() local
120 const PetscReal R0 = PetscSqrtReal(x0 * x0 + y0 * y0); in trig_trig_x()
121 const PetscReal theta0 = PetscAtan2Real(y0, x0); in trig_trig_x()
779 PetscCall(VecGetArrayRead(adv->x0, &xp0)); in ComputeParticleError()
784 PetscReal x0[3]; in ComputeParticleError() local
787 for (d = 0; d < dim; ++d) x0[d] = PetscRealPart(xp0[p * dim + d]); in ComputeParticleError()
788 PetscCall(adv->exact(dim, time, x0, 1, x, param)); in ComputeParticleError()
791 PetscCall(VecRestoreArrayRead(adv->x0, &xp0)); in ComputeParticleError()
813 PetscCall(VecGetArrayRead(adv->x0, &xp0)); in MonitorParticleError()
817 PetscReal x0[3]; in MonitorParticleError() local
821 for (d = 0; d < dim; ++d) x0[d] = PetscRealPart(xp0[p * dim + d]); in MonitorParticleError()
822 PetscCall(adv->exact(dim, time, x0, 1, x, param)); in MonitorParticleError()
826 PetscCall(VecRestoreArrayRead(adv->x0, &xp0)); in MonitorParticleError()
940 PetscCall(DMCreateGlobalVector(sdm, &adv.x0)); in main()
942 PetscCall(VecCopy(xtmp, adv.x0)); in main()
958 PetscCall(VecDestroy(&adv.x0)); in main()