Feel++
0.91.4
|
provides information about the Application More...
#include <applicationserial.hpp>
Public Types | |
Typedefs | |
typedef boost::ptr_list< Simget > | simgets_type |
Simget collection type. | |
typedef simgets_type::iterator | simget_iterator |
Simget iterator over the collection. | |
Public Member Functions | |
Constructors, destructor | |
Application (AboutData const &ad) | |
Application (AboutData const &ad, po::options_description const &od) | |
Application (int argc, char **argv, AboutData const &ad) | |
Application (int argc, char **argv, AboutData const &ad, po::options_description const &od) | |
Application (Application const &app) | |
virtual | ~Application () |
Application (int argc, char **argv, AboutData const &ad) | |
Application (int argc, char **argv, AboutData const &ad, po::options_description const &od) | |
~Application () | |
Application (int argc, char **argv, AboutData const &ad) | |
Application (int argc, char **argv, AboutData const &ad, po::options_description const &od) | |
Application (Application const &) | |
~Application () | |
Mutators | |
void | setName1 (std::string const &name1) |
void | setName2 (std::string const &name2) |
void | setH (double h, int precision=4) |
void | setDimension (int dim) |
Static Public Member Functions | |
static mpi::communicator const & | comm () |
static void | barrier () |
Protected Member Functions | |
void | doOptions (int argc, char **argv) |
void | processGenericOptions () |
void | parseAndStoreOptions (po::command_line_parser parser, bool extra_parser=false) |
void | setLogs () |
Accessors | |
po::options_description const & | optionsDescription () const |
po::variables_map const & | vm () const |
AboutData const & | about () const |
int | unknownArgc () const |
char ** | unknownArgv () const |
uint16_type | nProcess () |
uint16_type | processId () |
bool | isMPIInitialized () const |
std::string | rootRepository () const |
simget_iterator | begin () |
simget_iterator | end () |
size_type | nSimgets () const |
bool | verbose () const |
bool | isMPIInitialized () const |
static bool | initialized () |
static bool | finalized () |
static std::string | processorName () |
static bool | initialized () |
static bool | finalized () |
static std::string | processorName () |
Methods | |
Application & | changeRepository (boost::format) |
mpi::communicator & | comm () |
mpi::communicator const & | comm () const |
void | barrier () |
void | add (Simget *simget) |
virtual void | run () |
virtual void | run (const double *X, unsigned long P, double *Y, unsigned long N) |
void | printStats (std::ostream &out, std::vector< std::string > const &keys) const |
template<class T > | |
static void | Send (const T &obj, int proc, int tag) |
template<class T > | |
static void | Broadcast (T &obj) |
template<class T > | |
static void | Recv (T &obj, int proc, int tag) |
template<class T > | |
static void | Broadcast (T &, int=0) |
static void | barrier () |
Feel::Application::Application | ( | AboutData const & | ad | ) |
Construct an MPI Application
ad | AboutData structure for this Application |
Comm | MPI communicator |
Feel::Application::Application | ( | AboutData const & | ad, |
po::options_description const & | od | ||
) |
Construct an MPI Application
ad | AboutData structure for this Application |
od | po::options_description structure for this Application |
Comm | MPI communicator |
Feel::Application::Application | ( | int | argc, |
char ** | argv, | ||
AboutData const & | ad | ||
) |
Construct an MPI Application
argc | number of arguments on the command line |
argv | arguments in the command line |
ad | AboutData structure for this Application |
Comm | MPI communicator |
Feel::Application::Application | ( | int | argc, |
char ** | argv, | ||
AboutData const & | ad, | ||
po::options_description const & | od | ||
) |
Construct an MPI Application
argc | number of arguments on the command line |
argv | arguments in the command line |
ad | AboutData structure for this Application |
od | po::options_description structure for this Application |
Comm | MPI communicator |
Feel::Application::Application | ( | Application const & | app | ) |
copy constructor
app | Application to be copy constructed |
Feel::Application::Application | ( | int | argc, |
char ** | argv, | ||
AboutData const & | ad | ||
) |
Construct an MPI Application
argc | number of arguments on the command line |
argv | arguments in the command line |
ad | AboutData structure for this Application |
Comm | MPI communicator |
Feel::Application::Application | ( | int | argc, |
char ** | argv, | ||
AboutData const & | ad, | ||
po::options_description const & | od | ||
) |
Construct an MPI Application
argc | number of arguments on the command line |
argv | arguments in the command line |
ad | AboutData structure for this Application |
od | po::options_description structure for this Application |
Comm | MPI communicator |
Feel::Application::Application | ( | int | argc, |
char ** | argv, | ||
AboutData const & | ad | ||
) |
Construct an SERIAL Application
argc | number of arguments on the command line |
argv | arguments in the command line |
ad | AboutData structure for this Application |
Feel::Application::Application | ( | int | argc, |
char ** | argv, | ||
AboutData const & | ad, | ||
po::options_description const & | od | ||
) |
Construct an SERIAL Application
argc | number of arguments on the command line |
argv | arguments in the command line |
ad | AboutData structure for this Application |
od | po::options_description structure for this Application |
AboutData const& Feel::Application::about | ( | ) | const [inline] |
get the about data of the application
Referenced by doOptions(), setLogs(), and unknownArgv().
void Feel::Application::add | ( | Simget * | simget | ) |
add a new simget to the application
static void Feel::Application::barrier | ( | ) | [inline, static] |
static void Feel::Application::barrier | ( | ) | [inline, static] |
void Feel::Application::barrier | ( | ) | [inline] |
simget_iterator Feel::Application::begin | ( | ) | [inline] |
begin()
iterator Application & Feel::Application::changeRepository | ( | boost::format | fmt | ) |
change to Simulation Repository
References Feel::AboutData::appName(), and setLogs().
static mpi::communicator const& Feel::Application::comm | ( | ) | [inline, static] |
mpi::communicator& Feel::Application::comm | ( | ) | [inline] |
mpi::communicator const& Feel::Application::comm | ( | ) | const [inline] |
void Feel::Application::doOptions | ( | int | argc, |
char ** | argv | ||
) | [protected] |
parse and store application options from cmdline
argc | number of arguments |
argv | arguments |
parse config file if given to command line
References about(), Feel::AboutData::appName(), Feel::benchmark_options(), Feel::Environment::localConfigRepository(), and Feel::Environment::systemConfigRepository().
simget_iterator Feel::Application::end | ( | ) | [inline] |
end()
iterator Referenced by printStats(), and run().
static bool Feel::Application::finalized | ( | ) | [inline, static] |
Determine if the MPI environment has already been finalized.
The routine is equivalent to a call to MPI_Finalized
.
true
if the MPI environment has been finalized. References finalized().
static bool Feel::Application::finalized | ( | ) | [inline, static] |
Determine if the MPI environment has already been finalized.
The routine is equivalent to a call to MPI_Finalized
.
true
if the MPI environment has been finalized. Referenced by finalized().
static bool Feel::Application::initialized | ( | ) | [inline, static] |
Determine if the MPI environment has already been initialized.
This routine is equivalent to a call to MPI_Initialized
.
true
if the MPI environment has been initialized. References initialized().
static bool Feel::Application::initialized | ( | ) | [inline, static] |
Determine if the MPI environment has already been initialized.
This routine is equivalent to a call to MPI_Initialized
.
true
if the MPI environment has been initialized. Referenced by initialized(), and isMPIInitialized().
bool Feel::Application::isMPIInitialized | ( | ) | const [inline] |
true
if MPI is initialized, false
otherwise bool Feel::Application::isMPIInitialized | ( | ) | const [inline] |
true
if MPI is initialized, false
otherwise References initialized().
uint16_type Feel::Application::nProcess | ( | ) | [inline] |
Referenced by setLogs().
size_type Feel::Application::nSimgets | ( | ) | const [inline] |
po::options_description const& Feel::Application::optionsDescription | ( | ) | const [inline] |
get the options description
void Feel::Application::printStats | ( | std::ostream & | out, |
std::vector< std::string > const & | keys | ||
) | const |
print statistics from applications
References end().
uint16_type Feel::Application::processId | ( | ) | [inline] |
Referenced by setLogs().
static std::string Feel::Application::processorName | ( | ) | [inline, static] |
Retrieve the name of this processor.
This routine returns the name of this processor. The actual form of the name is unspecified, but may be documented by the underlying MPI implementation. This routine is implemented as a call to MPI_Get_processor_name
.
static std::string Feel::Application::processorName | ( | ) | [inline, static] |
Retrieve the name of this processor.
This routine returns the name of this processor. The actual form of the name is unspecified, but may be documented by the underlying MPI implementation. This routine is implemented as a call to MPI_Get_processor_name
.
std::string Feel::Application::rootRepository | ( | ) | const |
void Feel::Application::run | ( | ) | [virtual] |
execute the set of Simget stored in the Application
References end().
void Feel::Application::run | ( | const double * | X, |
unsigned long | P, | ||
double * | Y, | ||
unsigned long | N | ||
) | [virtual] |
execute the set of Simget stored in the Application following the input/output model .
is the number of inputs and
the number of outputs. Denote
(
nSimgets()
) the number of simgets stored in the Application. and
must be of size
and
respectively.
void Feel::Application::setDimension | ( | int | dim | ) |
set the dimension of the problem
void Feel::Application::setH | ( | double | h, |
int | precision = 4 |
||
) |
h is the mesh size
void Feel::Application::setLogs | ( | ) | [protected] |
set log files
prefix | prefix for log filenames |
References about(), Feel::AboutData::appName(), nProcess(), and processId().
Referenced by changeRepository().
void Feel::Application::setName1 | ( | std::string const & | name1 | ) |
name1 represents the first level name
void Feel::Application::setName2 | ( | std::string const & | name2 | ) |
name2 represents the second level name
int Feel::Application::unknownArgc | ( | ) | const [inline] |
boost::program_options
char ** Feel::Application::unknownArgv | ( | ) | const |
char**
of unrecognized options References about().
bool Feel::Application::verbose | ( | ) | const [inline] |
po::variables_map const& Feel::Application::vm | ( | ) | const [inline] |
get the variable map