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

#include <basic_actions.h>

Inheritance diagram for CopyBflagFromBurn:
Collaboration diagram for CopyBflagFromBurn:

Public Member Functions

 CopyBflagFromBurn (BurnAgent *bag)
 
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

BurnAgentbagent
 
std::string parent_bflag
 
std::string burn_bflag
 

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 250 of file basic_actions.h.

Constructor & Destructor Documentation

Definition at line 854 of file basic_actions.C.

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

854  :
855  Action(0, (const char**)NULL, NULL, NULL, (char *)"CopyBflagFromBurn"),
856  bagent(bag)
857 {
858  set_io( 0, (int *)NULL);
859 
860  set_attr(0, (const char**)NULL);
861 }
BurnAgent * bagent
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 863 of file basic_actions.C.

References bagent, burn_bflag, Agent::get_surface_window(), parent_bflag, and BurnAgent::parentWin.

863  {
864  burn_bflag = bagent->get_surface_window()+".bflag";
865  parent_bflag = bagent->parentWin+".bflag";
866 }
BurnAgent * bagent
std::string get_surface_window() const
Definition: Agent.h:217
std::string parent_bflag
std::string parentWin
Definition: BurnAgent.h:51
std::string burn_bflag

Here is the call graph for this function:

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

Reimplemented from Action.

Definition at line 868 of file basic_actions.C.

References bagent, burn_bflag, COM_copy_attribute(), Coupling::get_control_param(), Agent::get_coupling(), BurnAgent::ignmodel, Control_parameters::init_time, Coupling::initial_start(), MAN_DEBUG, and parent_bflag.

868  {
869  MAN_DEBUG(3, ("Rocstar: CopyBflagFromBurn::run() with t:%e dt:%e.\n", t, dt));
870 
871 
872  if (!bagent->get_coupling()->initial_start() &&
874  COM_copy_attribute( parent_bflag.c_str(), burn_bflag.c_str());
875  }
876 
877 }
BurnAgent * bagent
double init_time
Definition: Coupling.h:53
Coupling * get_coupling()
Definition: Agent.h:213
std::string parent_bflag
void COM_copy_attribute(const char *wname, const char *attr, int wg=1, const char *ptnname=0, int val=0)
Copy an attribute onto another.
Definition: roccom_c++.h:244
#define MAN_DEBUG(l, x)
Definition: rocman.h:98
bool ignmodel
Definition: BurnAgent.h:68
const Control_parameters * get_control_param()
Definition: Coupling.h:183
int initial_start() const
Definition: Coupling.h:163
std::string burn_bflag

Here is the call graph for this function:

Member Data Documentation

BurnAgent* bagent
private

Definition at line 256 of file basic_actions.h.

Referenced by init(), and run().

std::string burn_bflag
private

Definition at line 257 of file basic_actions.h.

Referenced by init(), and run().

std::string parent_bflag
private

Definition at line 257 of file basic_actions.h.

Referenced by init(), and run().


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