Lines Matching refs:curr_step
102 PetscInt curr_step; in RHSFunction() local
108 PetscCall(TSGetStepNumber(ts, &curr_step)); in RHSFunction()
113 f[0] = mu1[curr_step] * u[1]; in RHSFunction()
114 f[1] = mu2[curr_step] * ((1. - u[0] * u[0]) * u[1] - u[0]); in RHSFunction()
127 PetscInt curr_step; in RHSJacobian() local
133 PetscCall(TSGetStepNumber(ts, &curr_step)); in RHSJacobian()
138 J[1][0] = -mu2[curr_step] * (2.0 * u[1] * u[0] + 1.); in RHSJacobian()
139 J[0][1] = mu1[curr_step]; in RHSJacobian()
140 J[1][1] = mu2[curr_step] * (1.0 - u[0] * u[0]); in RHSJacobian()
178 PetscInt curr_step; in RHSJacobianP_global() local
181 PetscCall(TSGetStepNumber(ts, &curr_step)); in RHSJacobianP_global()
187 col[0] = curr_step * 2; in RHSJacobianP_global()
188 col[1] = curr_step * 2 + 1; in RHSJacobianP_global()
211 PetscInt curr_step; in AdjointMonitor() local
217 PetscCall(TSGetStepNumber(ts, &curr_step)); in AdjointMonitor()
225 if (curr_step == user->adj_idx) { in AdjointMonitor()
231 sensmu1_glob[curr_step] = sensmu_loc[0]; in AdjointMonitor()
232 sensmu2_glob[curr_step] = sensmu_loc[1]; in AdjointMonitor()