HyPar  1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
TimeStep.c File Reference

Advance one time step. More...

#include <basic.h>
#include <simulation_object.h>
#include <timeintegration.h>

Go to the source code of this file.

Functions

int TimeStep (void *ts)
 

Detailed Description

Advance one time step.

Author
Debojyoti Ghosh

Definition in file TimeStep.c.

Function Documentation

int TimeStep ( void *  ts)

Advance one time step.

Parameters
tsObject of type TimeIntegration

Definition at line 13 of file TimeStep.c.

14 {
15  TimeIntegration *TS = (TimeIntegration*) ts;
17 
18  if (TS->TimeIntegrate) { TS->TimeIntegrate(TS); }
19 
20  return(0);
21 }
Structure of variables/parameters and function pointers for time integration.
Structure defining a simulation.
int(* TimeIntegrate)(void *)