lbm_reference
Main Page
Namespaces
Classes
Files
File List
File Members
main_particle_system.cpp
Go to the documentation of this file.
1
//! \file main_particle_system.cpp
2
//! \date Mar 24, 2009
3
//! \author Florian Rathgeber
4
5
#include <iostream>
6
7
#include "
particles/ParticleSystem.h
"
8
9
//! Main function
10
11
//! Runs a fire simulation according to the configuration file given.
12
//! \note The commandline for the executable is:
13
//! <b>exename configFileName</b>
14
//! \param[in] configFileName \b string Path to the configuration file
15
16
int
main
(
int
argc,
char
** argv ) {
17
18
if
( argc < 2 || ( argc >= 2 &&
19
( strcmp( argv[1],
"--help"
) == 0 || strcmp( argv[1],
"-h"
) == 0 ) ) ) {
20
std::cerr <<
"usage: "
<< argv[0] <<
" <configFileName>"
<< std::endl;
21
exit( -1 );
22
}
23
24
particles::ParticleSystem
myFire( argv[1] );
25
myFire.
run
();
26
27
return
0;
28
}
Generated on Sun Jan 5 2014 15:28:21 for lbm_reference by
1.8.3.1