MFEM  v4.5.2
Finite element discretization library
Functions
life.cpp File Reference

Go to the source code of this file.

Functions

bool GameStep (vector< bool > *b[], int nx, int ny)
 
void ProjectStep (const vector< bool > &b, GridFunction &x, int n)
 
bool InitSketchPad (vector< bool > &b, int nx, int ny, const Array< int > &params)
 
bool InitBlinker (vector< bool > &b, int nx, int ny, const Array< int > &params)
 
bool InitGlider (vector< bool > &b, int nx, int ny, const Array< int > &params)
 
bool InitMFEM (vector< bool > &b, int nx, int ny)
 
int main (int argc, char *argv[])
 
int index (int i, int j, int nx, int ny)
 

Function Documentation

◆ GameStep()

bool GameStep ( vector< bool > *  b[],
int  nx,
int  ny 
)

Definition at line 240 of file life.cpp.

◆ index()

int index ( int  i,
int  j,
int  nx,
int  ny 
)
inline

Definition at line 235 of file life.cpp.

◆ InitBlinker()

bool InitBlinker ( vector< bool > &  b,
int  nx,
int  ny,
const Array< int > &  params 
)

Definition at line 283 of file life.cpp.

◆ InitGlider()

bool InitGlider ( vector< bool > &  b,
int  nx,
int  ny,
const Array< int > &  params 
)

Definition at line 308 of file life.cpp.

◆ InitMFEM()

bool InitMFEM ( vector< bool > &  b,
int  nx,
int  ny 
)

Definition at line 375 of file life.cpp.

◆ InitSketchPad()

bool InitSketchPad ( vector< bool > &  b,
int  nx,
int  ny,
const Array< int > &  params 
)

Definition at line 351 of file life.cpp.

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 52 of file life.cpp.

◆ ProjectStep()

void ProjectStep ( const vector< bool > &  b,
GridFunction x,
int  n 
)

Definition at line 275 of file life.cpp.