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

#include <basic_actions.h>

Inheritance diagram for ComputePconn:
Collaboration diagram for ComputePconn:

Public Member Functions

 ComputePconn (Agent *ag, std::string a_mesh, std::string a_pconn, std::string p_pmesh, int *cond=NULL)
 
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
 
std::string a_mesh_str
 
std::string a_pconn_str
 
std::string p_pmesh_str
 
int a_mesh_hdl
 
int a_pconn_hdl
 
int p_pmesh_hdl
 
int MAP_compute_pconn
 
int PROP_initialize
 
int * cond_addr
 

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

Constructor & Destructor Documentation

ComputePconn ( Agent ag,
std::string  a_mesh,
std::string  a_pconn,
std::string  p_pmesh,
int *  cond = NULL 
)

Definition at line 880 of file basic_actions.C.

References a_mesh_str, a_pconn_str, Action::OUT, p_pmesh_str, Action::set_attr(), and Action::set_io().

880  :
881  Action(0, (const char**)NULL, NULL, NULL, (char *)"ComputePconn"),
882  agent(ag), a_mesh_str(a_mesh), a_pconn_str(a_pconn), p_pmesh_str(p_pmesh), cond_addr(cond)
883 {
884  int io[3] = {OUT, OUT, OUT};
885  set_io( 3, io);
886 
887  std::string atts[3];
888  atts[0] = a_mesh_str;
889  atts[1] = a_pconn_str;
890  atts[2] = p_pmesh_str;
891  set_attr(3, atts);
892 }
std::string a_pconn_str
std::string a_mesh_str
void set_io(int n, const int *io)
Definition: Action.h:70
std::string p_pmesh_str
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 894 of file basic_actions.C.

References a_mesh_hdl, a_pconn_hdl, agent, COM_get_function_handle(), cond_addr, Action::get_attribute_handle(), Agent::get_communicator(), Agent::get_coupling(), Coupling::get_rocmancontrol_param(), load_rocmap(), load_rocprop(), MAP_compute_pconn, p_pmesh_hdl, and PROP_initialize.

895 {
896  if (cond_addr && *cond_addr == 0) return;
897 
901 
902  load_rocmap();
903  MAP_compute_pconn = COM_get_function_handle("MAP.compute_pconn");
904 
906  PROP_initialize = COM_get_function_handle("PROP.initialize");
907 }
static void load_rocprop(const RocmanControl_parameters *param, MPI_Comm comm)
int get_attribute_handle(int i)
Definition: Action.C:93
static void load_rocmap()
Coupling * get_coupling()
Definition: Agent.h:213
const RocmanControl_parameters * get_rocmancontrol_param()
Definition: Coupling.h:184
MPI_Comm get_communicator() const
Definition: Agent.h:220
int COM_get_function_handle(const char *wfname)
Definition: roccom_c++.h:428

Here is the call graph for this function:

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

Reimplemented from Action.

Definition at line 909 of file basic_actions.C.

References a_mesh_hdl, a_pconn_hdl, agent, COM_call_function(), cond_addr, Agent::get_agent_name(), MAN_DEBUG, MAP_compute_pconn, p_pmesh_hdl, and PROP_initialize.

909  {
910 
911  if (cond_addr && *cond_addr == 0) return;
912 
913  MAN_DEBUG(3, ("Rocstar: (%s) ComputePconn::run() with t:%e dt:%e.\n", agent->get_agent_name().c_str(), t, dt));
914 
915  // Compute pconn for the whole surface, which will also be used
916  // by surface propagation.
918 
920 
921  // ??????????
922 /*
923  double v = 0.0;
924  int f_du_alp_hdl = COM_get_attribute_handle(fagent->get_surface_window()+".du_alp");
925  COM_call_function( RocBlas::copy_scalar, &v, &f_du_alp_hdl);
926 
927  double a = 0.0;
928  int level = 1;
929  fagent->obtain_bc(&a, &level);
930  level = 2;
931  fagent->obtain_bc(&a, &level);
932 */
933  // ??????????????
934 }
std::string get_agent_name() const
Definition: Agent.h:223
void COM_call_function(const int wf, int argc,...)
Definition: roccom_c.C:48
#define MAN_DEBUG(l, x)
Definition: rocman.h:98

Here is the call graph for this function:

Member Data Documentation

int a_mesh_hdl
private

Definition at line 269 of file basic_actions.h.

Referenced by init(), and run().

std::string a_mesh_str
private

Definition at line 268 of file basic_actions.h.

Referenced by ComputePconn().

int a_pconn_hdl
private

Definition at line 269 of file basic_actions.h.

Referenced by init(), and run().

std::string a_pconn_str
private

Definition at line 268 of file basic_actions.h.

Referenced by ComputePconn().

Agent* agent
private

Definition at line 267 of file basic_actions.h.

Referenced by init(), and run().

int* cond_addr
private

Definition at line 272 of file basic_actions.h.

Referenced by init(), and run().

int MAP_compute_pconn
private

Definition at line 270 of file basic_actions.h.

Referenced by init(), and run().

int p_pmesh_hdl
private

Definition at line 269 of file basic_actions.h.

Referenced by init(), and run().

std::string p_pmesh_str
private

Definition at line 268 of file basic_actions.h.

Referenced by ComputePconn().

int PROP_initialize
private

Definition at line 271 of file basic_actions.h.

Referenced by init(), and run().


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