| /petsc/src/ts/event/tests/ |
| H A D | ex16.c | 93 PetscErrorCode Event(TS ts, PetscReal t, Vec x, PetscReal *fvalue, PetscCtx ctx) in Event() argument 96 fvalue[0] = t - 1.1; in Event() 97 fvalue[1] = 1.2 - t; in Event() 98 fvalue[2] = t - 1.3; in Event()
|
| H A D | ex1.c | 201 PetscErrorCode Event(TS ts, PetscReal t, Vec x, PetscReal *fvalue, PetscCtx ctx) in Event() argument 204 fvalue[0] = t - 5; in Event() 205 fvalue[1] = 7 - t; in Event() 206 fvalue[2] = t - 9; in Event()
|
| /petsc/src/binding/petsc4py/demo/legacy/ode/ |
| H A D | bouncing_ball.py | 75 def event(ts, t, X, fvalue): argument 76 fvalue[0] = X[0]
|
| /petsc/src/ts/event/ |
| H A D | tsevent.c | 45 PetscCall(PetscFree((*event)->fvalue)); in TSEventDestroy() 309 …nate[], PetscErrorCode (*indicator)(TS ts, PetscReal t, Vec U, PetscReal fvalue[], PetscCtx ctx), … in TSSetEventHandler() argument 329 PetscCall(PetscMalloc1(nevents, &event->fvalue)); in TSSetEventHandler() 485 PetscCallBack("TSEvent indicator", (*event->indicator)(ts, t, U, event->fvalue, event->ctx)); in TSPostEvent() 487 …TSEventCalcSigns(event->nevents, event->fvalue, event->vtol, event->fsign); // note, event->vtol m… in TSPostEvent() 649 event->fvalue_prev[i] = event->fvalue[i]; in TSEvent_update_left() 661 event->fvalue_right[i] = event->fvalue[i]; in TSEvent_update_right() 673 event->fvalue[i] = event->fvalue_right[i]; in TSEvent_update_from_right() 812 …PetscCallBack("TSEvent indicator", (*event->indicator)(ts, t, U, event->fvalue, event->ctx)); // f… in TSEventHandler() 814 TSEventCalcSigns(event->nevents, event->fvalue, event->vtol, event->fsign); // fill fvalue signs in TSEventHandler() [all …]
|
| /petsc/src/ts/tutorials/hybrid/ |
| H A D | ex1.c | 26 PetscErrorCode EventFunction(TS ts, PetscReal t, Vec U, PetscReal *fvalue, PetscCtx ctx) in EventFunction() argument 34 fvalue[0] = PetscRealPart(u[1] - actx->lambda1 * u[0]); in EventFunction() 36 fvalue[0] = PetscRealPart(u[1] - actx->lambda2 * u[0]); in EventFunction()
|
| H A D | ex1fwd.c | 50 PetscErrorCode EventFunction(TS ts, PetscReal t, Vec U, PetscReal *fvalue, PetscCtx ctx) in EventFunction() argument 58 fvalue[0] = PetscRealPart(u[1] - actx->lambda1 * u[0]); in EventFunction() 60 fvalue[0] = PetscRealPart(u[1] - actx->lambda2 * u[0]); in EventFunction()
|
| H A D | ex1adj.c | 28 PetscErrorCode EventFunction(TS ts, PetscReal t, Vec U, PetscReal *fvalue, PetscCtx ctx) in EventFunction() argument 36 fvalue[0] = PetscRealPart(u[1] - actx->lambda1 * u[0]); in EventFunction() 38 fvalue[0] = PetscRealPart(u[1] - actx->lambda2 * u[0]); in EventFunction()
|
| H A D | ex1fd.c | 28 PetscErrorCode EventFunction(TS ts, PetscReal t, Vec U, PetscReal *fvalue, PetscCtx ctx) in EventFunction() argument 36 fvalue[0] = PetscRealPart(u[1] - actx->lambda1 * u[0]); in EventFunction() 38 fvalue[0] = PetscRealPart(u[1] - actx->lambda2 * u[0]); in EventFunction()
|
| /petsc/src/ts/tutorials/power_grid/ |
| H A D | ex3.h | 23 PetscErrorCode EventFunction(TS ts, PetscReal t, Vec X, PetscReal *fvalue, PetscCtx ctx) in EventFunction() argument 29 fvalue[0] = t - user->tf; in EventFunction() 31 fvalue[1] = t - user->tcl; in EventFunction()
|
| /petsc/src/ts/tutorials/power_grid/stability_9bus/ |
| H A D | ex9bus.c | 136 PetscErrorCode EventFunction(TS ts, PetscReal t, Vec X, PetscReal *fvalue, PetscCtx ctx) in EventFunction() argument 152 fvalue[0] = t - user->tfaulton; in EventFunction() 154 fvalue[1] = t - user->tfaultoff; in EventFunction() 166 fvalue[2 + 2 * i] = PetscRealPart(VRMAX[i] - VR); in EventFunction() 168 …fvalue[2 + 2 * i] = PetscRealPart((VR - KA[i] * RF + KA[i] * KF[i] * Efd / TF[i] - KA[i] * (Vref[i… in EventFunction() 171 fvalue[2 + 2 * i + 1] = PetscRealPart(VRMIN[i] - VR); in EventFunction() 173 …fvalue[2 + 2 * i + 1] = PetscRealPart((VR - KA[i] * RF + KA[i] * KF[i] * Efd / TF[i] - KA[i] * (Vr… in EventFunction() 192 PetscScalar fvalue; in PostEventFunction() local 250 fvalue = (VR - KA[i] * RF + KA[i] * KF[i] * Efd / TF[i] - KA[i] * (Vref[i] - Vm)) / TA[i]; in PostEventFunction() 251 if (fvalue < 0) { in PostEventFunction() [all …]
|
| /petsc/src/ts/tutorials/ |
| H A D | ex44.c | 23 static PetscErrorCode Event(TS ts, PetscReal t, Vec U, PetscReal *fvalue, PetscCtx ctx) in Event() argument 32 fvalue[0] = PetscRealPart(u[0]); in Event()
|
| H A D | ex41.c | 17 PetscErrorCode EventFunction(TS ts, PetscReal t, Vec U, PetscReal *fvalue, PetscCtx ctx) in EventFunction() argument 24 fvalue[0] = PetscRealPart(u[0]); in EventFunction()
|
| H A D | ex40.c | 21 PetscErrorCode EventFunction(TS ts, PetscReal t, Vec U, PetscReal *fvalue, PetscCtx ctx) in EventFunction() argument 28 fvalue[0] = PetscRealPart(u[0]); in EventFunction()
|
| H A D | ex32.c | 67 PetscErrorCode EventFunction(TS ts, PetscReal t, Vec U, PetscReal *fvalue, PetscCtx ctx) in EventFunction() argument 76 for (i = 0; i < lsize; i++) fvalue[i] = PetscRealPart(u[i]) - app->uc; in EventFunction()
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | petscts.pxi | 552 PetscReal fvalue[], 563 fvalue_array = PyArray_SimpleNewFromData(1, &s, NPY_PETSC_REAL, fvalue)
|
| /petsc/include/petsc/private/ |
| H A D | tsimpl.h | 471 …PetscReal *fvalue; /* value… member
|