Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
BCInitInvoker Class Reference

#include <basic_actions.h>

Inheritance diagram for BCInitInvoker:
Collaboration diagram for BCInitInvoker:

Public Member Functions

 BCInitInvoker (Agent *ag)
 
void init (double t)
 
void run (double t, double dt, double alpha)
 
- Public Member Functions inherited from Action
 Action (void *p=0, char *name=NULL)
 
 Action (int n, const char *at[], int *i=NULL, void *p=0, char *name=NULL)
 
 Action (int n, const std::string at[], int *i=NULL, void *p=0, char *name=NULL)
 
virtual ~Action ()
 
virtual void declare (Scheduler &)
 
virtual void finalize ()
 
virtual char * name ()
 
void set_name (const char *name)
 
virtual void print (FILE *f)
 
virtual void print_toposort (FILE *f)
 
virtual void schedule ()
 

Private Attributes

Agentagent
 

Additional Inherited Members

- Protected Types inherited from Action
enum  { IN =1, OUT =2, INOUT =3 }
 
- Protected Member Functions inherited from Action
int get_attribute_handle (int i)
 
int get_attribute_handle_const (int i)
 
int get_attribute_handle (const std::string str)
 
void set_attr (int n, const std::string at[], int *id=NULL)
 
void set_attr (int n, const char *at[], int *id=NULL)
 
void set_io (int n, const int *io)
 
void set_io (const char *io)
 
int get_io (int i)
 
- Protected Attributes inherited from Action
char * action_name
 
char ** attr
 
int * idx
 
int count
 
void * usr_ptr
 
std::vector< int > inout
 

Detailed Description

Definition at line 97 of file basic_actions.h.

Constructor & Destructor Documentation

BCInitInvoker ( Agent ag)

Definition at line 156 of file basic_actions.C.

References Action::set_attr(), and Action::set_io().

156  :
157  Action( 0, (const char**)NULL, NULL, NULL, (char *)"BCInitInvoker"),
158  agent(ag)
159 {
160  set_io( 0, NULL);
161  set_attr(0, (const char**)NULL);
162 }
void set_io(int n, const int *io)
Definition: Action.h:70
Action(void *p=0, char *name=NULL)
Definition: Action.C:32
void set_attr(int n, const std::string at[], int *id=NULL)
Definition: Action.C:66

Here is the call graph for this function:

Member Function Documentation

void init ( double  t)
virtual

Reimplemented from Action.

Definition at line 164 of file basic_actions.C.

References agent, Agent::get_agent_name(), Agent::init_bcinitaction(), and MAN_DEBUG.

164  {
165  MAN_DEBUG(3, ("Rocstar: BCInitInvoker::init() agent: %s .\n", agent->get_agent_name().c_str()));
166  // init bcactions
168  MAN_DEBUG(3, ("Rocstar: BCInitInvoker::init() agent: %s DONE.\n", agent->get_agent_name().c_str()));
169 }
std::string get_agent_name() const
Definition: Agent.h:223
#define MAN_DEBUG(l, x)
Definition: rocman.h:98
void init_bcinitaction(double t)
Definition: Agent.C:557

Here is the call graph for this function:

void run ( double  t,
double  dt,
double  alpha 
)
virtual

Reimplemented from Action.

Definition at line 171 of file basic_actions.C.

References agent, Agent::get_agent_name(), MAN_DEBUG, and Agent::run_bcinitaction().

171  {
172  MAN_DEBUG(3, ("Rocstar: BCInitInvoker::run() agent: %s t:%e dt:%e alpha:%e.\n", agent->get_agent_name().c_str(), t, dt, alpha));
173 
174  agent->run_bcinitaction(t, dt);
175 
176  MAN_DEBUG(3, ("Rocstar: BCInitInvoker::run() agent: %s DONE.\n", agent->get_agent_name().c_str()));
177 }
void run_bcinitaction(double t, double dt)
Definition: Agent.C:562
std::string get_agent_name() const
Definition: Agent.h:223
#define MAN_DEBUG(l, x)
Definition: rocman.h:98

Here is the call graph for this function:

Member Data Documentation

Agent* agent
private

Definition at line 103 of file basic_actions.h.

Referenced by init(), and run().


The documentation for this class was generated from the following files: