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