Feel++  0.91.4
Protected Member Functions | Protected Attributes | Friends | List of all members
Feel::Simget Class Referenceabstract

Simulation Object. More...

#include <simget.hpp>

Public Member Functions

Constructors, destructor
 Simget (po::variables_map const &_vm)
 
 Simget (AboutData const &_about)
 
 Simget (po::variables_map const &_vm, AboutData const &_about)
 
virtual ~Simget ()
 destructor
 
Operator overloads
Simgetoperator= (Simget const &o)
 copy operator
 
Accessors
virtual std::string name () const
 return the name of the simget
 
mpi::communicator comm () const
 
po::variables_map const & vm () const
 
AboutData const & about () const
 
double meshSize () const
 return the mesh size
 
ptree::ptree const & stats () const
 return the statistics associated to the simget after calling run
 
Mutators
void setMeshSize (double h)
 set the mesh size
 
Methods
virtual void run ()=0
 
virtual void run (const double *X, unsigned long P, double *Y, unsigned long N)=0
 
void print (std::ostream &out, std::vector< ptree::ptree > &stats)
 

Protected Member Functions

SimgetchangeRepository (boost::format fmt)
 

Protected Attributes

double M_meshSize
 
ptree::ptree M_stats
 

Friends

class Application
 

Detailed Description

Simulation Object.

A Simget is an object that provides two flavors of run() member function

Author
Christophe Prud'homme
See Also

Constructor & Destructor Documentation

Feel::Simget::Simget ( po::variables_map const &  _vm)

constructor with a variables_map

Feel::Simget::Simget ( AboutData const &  _about)
inline

constructor with an AboutData that describes the simget

Feel::Simget::Simget ( po::variables_map const &  _vm,
AboutData const &  _about 
)
inline

constructor with a variables_map and an AboutData that describes the top application

Member Function Documentation

AboutData const& Feel::Simget::about ( ) const
inline
Returns
the AboutData object
Simget & Feel::Simget::changeRepository ( boost::format  fmt)
protected

change repository.

References Feel::Environment::changeRepository().

mpi::communicator Feel::Simget::comm ( ) const
inline
Returns
the mpi communicator
void Feel::Simget::print ( std::ostream &  out,
std::vector< ptree::ptree > &  stats 
)

print statistics from simget

References Feel::AboutData::appName().

virtual void Feel::Simget::run ( )
pure virtual

simply execute the simget

virtual void Feel::Simget::run ( const double *  X,
unsigned long  P,
double *  Y,
unsigned long  N 
)
pure virtual

models the input/output relation $ Y=F(X) $

po::variables_map const& Feel::Simget::vm ( ) const
inline
Returns
the variables_map