int TSSetRHSFunction(TS ts,int (*f)(TS,double,Vec,Vec,void*),void *ctx)Collective on TS
| ts | - the TS context obtained from TSCreate() |
| f | - routine for evaluating the right-hand-side function |
| ctx | - [optional] user-defined context for private data for the function evaluation routine (may be PETSC_NULL) |
func (TS ts,double t,Vec u,Vec F,void *ctx);
| t | - current timestep |
| u | - input vector |
| F | - function vector |
| ctx | - [optional] user-defined function context |
Location: src/ts/interface/ts.c
Time Stepping
Table of Contents