Lines Matching +full:test +full:- +full:basic
1 static char help[] = "Parallel bouncing ball example formulated as a second-order system to test TS…
6 u_tt = -9.8 - 1/2 Cd (u_t)^2 sign(u_t)
54 v[0] = -app->Cr * v[0]; in PostEvent()
57 app->bounces++; in PostEvent()
59 if (app->bounces >= app->maxbounces) { // 'app->bounces' may be different on different processes in PostEvent()
60 …tf(PETSC_COMM_SELF, "Processor [%d]: Ball bounced %" PetscInt_FMT " times\n", rank, app->bounces)); in PostEvent()
78 Res = a[0] + 9.8 + 0.5 * app->Cd * v[0] * v[0] * PetscSignReal(PetscRealPart(v[0])); in I2Function()
100 Jac = shiftA + shiftV * app->Cd * v[0]; in I2Jacobian()
138 PetscCall(PetscOptionsReal("-Cd", "Drag coefficient", "", app.Cd, &app.Cd, NULL)); in main()
139 PetscCall(PetscOptionsReal("-Cr", "Restitution coefficient", "", app.Cr, &app.Cr, NULL)); in main()
140 …PetscCall(PetscOptionsInt("-maxbounces", "Maximum number of bounces", "", app.maxbounces, &app.max… in main()
154 direction[0] = -1; in main()
156 …, 1, direction, terminate, Event, PostEvent, &app)); // each process has one event-function defined in main()
189 /*TEST
191 test:
193 args: -ts_alpha_radius {{1.0 0.5}} -ts_max_time 50
196 test:
198 args: -ts_rtol 0 -ts_atol 1e-1 -ts_adapt_type basic -ts_max_time 50
201 test:
203 args: -snes_mf_operator -ts_rtol 0 -ts_atol 1e-1 -ts_adapt_type basic -ts_max_time 50
206 test:
209 args: -ts_rtol 0 -ts_atol 1e-1 -ts_adapt_type basic -ts_max_time 50
211 filter: sort -b
212 filter_output: sort -b
214 test:
216 args: -ts_time_step 0.25 -ts_adapt_type basic -ts_adapt_wnormtype INFINITY -ts_adapt_monitor
217 …args: -ts_max_steps 1 -ts_max_step_rejections {{0 1 2}separate_output} -ts_error_if_step_fails fal…
219 TEST*/