lbm_reference
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 
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 }