|
Feel++ 0.91.0
|
Public Member Functions | |
| MyApp (int argc, char **argv, AboutData const &) | |
| MyApp (int argc, char **argv, AboutData const &, po::options_description const &) | |
| void | run () |
This is a demo class to illustrate what is done (at the very least) in subclasses of Feel::Application
| MyApp::MyApp | ( | int | argc, |
| char ** | argv, | ||
| AboutData const & | ad | ||
| ) |
constructor only about data and no options description
| MyApp::MyApp | ( | int | argc, |
| char ** | argv, | ||
| AboutData const & | ad, | ||
| po::options_description const & | od | ||
| ) |
constructor about data and options description
| void MyApp::run | ( | ) | [virtual] |
This function is responsible for the actual work done by MyApp.
print the help if --help is passed as an argument
*/
if ( this->vm().count( "help" ) )
{
std::cout << this->optionsDescription() << "\n";
return;
}
store all subsequent data files in a HOME/feel/doc/tutorial/myapp/
*/
//# marker8 #
this->changeRepository( boost::format( "doc/tutorial/%1%/" )
% this->about().appName() );
//# endmarker8 #
print some information that will be written in the log file in HOME/feel/doc/tutorial/myapp/myapp-1.0
*/
Log() << "the value of dt is " << this->vm()["dt"].as<double>() << "\n";
Log() << "the value of myapp-solver-type is " << this->vm()["myapp-ksp-type"].as<std::string>() << "\n";
Log() << "the value of myapp-pc-type is " << this->vm()["myapp-pc-type"].as<std::string>() << "\n";
Reimplemented from Feel::Application.
References Feel::Application::about(), Feel::Application::changeRepository(), Feel::Application::optionsDescription(), and Feel::Application::vm().
Referenced by main().
1.7.4