TSSetDuration

Sets the maximum number of timesteps to use and maximum time for iteration.

Synopsis

#include "ts.h"  
int TSSetDuration(TS ts,int maxsteps,double maxtime)
Collective on TS

Input Parameters

ts - the TS context obtained from TSCreate()
maxsteps - maximum number of iterations to use
maxtime - final time to iterate to

Options Database Keys

-ts_max_steps <maxsteps> -Sets maxsteps
-ts_max_time <maxtime> -Sets maxtime

Notes

The default maximum number of iterations is 5000. Default time is 5.0

Keywords

TS, timestep, set, maximum, iterations

Examples

src/ts/examples/tutorials/ex2f.F

Level:intermediate
Location:src/ts/interface/ts.c
Time Stepping
Table of Contents