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

#include <Interpolate.h>

Inheritance diagram for Interpolate_Constant:
Collaboration diagram for Interpolate_Constant:

Public Member Functions

 Interpolate_Constant (Agent *ag, Agent *bkag, const std::string attr, const std::string alpsuf="_alp")
 
void run (double t, double dt, double alpha)
 
- Public Member Functions inherited from InterpolateBase
 InterpolateBase (Agent *ag, Agent *bkag, int cond=0)
 
virtual void init (double t)
 
void backup ()
 
- 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 ()
 

Additional Inherited Members

- Protected Types inherited from Action
enum  { IN =1, OUT =2, INOUT =3 }
 
- Protected Member Functions inherited from InterpolateBase
void extrapolate_Linear (double dt, double dt_old, double time_old, int a_old, double time_new, int a_new, double time_out, int a_out, int a_gra=-100)
 
- 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 InterpolateBase
Agentagent
 
Agentbkagent
 
int attr_hdls [4]
 
int bkup_hdls [3]
 
int conditional
 
int on
 
- 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 70 of file Interpolate.h.

Constructor & Destructor Documentation

Interpolate_Constant ( Agent ag,
Agent bkag,
const std::string  attr,
const std::string  alpsuf = "_alp" 
)

Definition at line 307 of file Interpolate.C.

References Action::action_name, InterpolateBase::agent, Action::attr, COM_assertion_msg, Agent::get_surface_window(), Action::IN, Action::OUT, Action::set_attr(), and Action::set_io().

307  : InterpolateBase(ag, bkag)
308 {
309  action_name = (char *)"Interpolate_Constant";
310 
311  std::string atts[4];
312  atts[0] = attr;
313  atts[1] = attr + "_old";
314  atts[2] = attr + alpsuf;
315  atts[3] = attr + "_grad";
316  set_attr(4, atts);
317 
318  // Define I/O of the arguments.
319  int io[] = {IN, IN, OUT, IN};
320  set_io( 4, io);
321 
322  // register attributes
323  std::string::size_type pos = attr.find(".");
324  std::string wname, aname;
325  if ( pos == std::string::npos) {
326  COM_assertion_msg(0, "ERROR: Here!");
327  }
328  else {
329  wname = attr.substr( 0, pos);
330  aname = attr.substr( pos, attr.size()-pos);
331  }
332  std::string surf_win = agent->get_surface_window();
333 
334 }
InterpolateBase(Agent *ag, Agent *bkag, int cond=0)
Definition: Interpolate.C:30
#define COM_assertion_msg(EX, msg)
std::string get_surface_window() const
Definition: Agent.h:217
char * action_name
Definition: Action.h:36
char ** attr
Definition: Action.h:37
void set_io(int n, const int *io)
Definition: Action.h:70
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 run ( double  t,
double  dt,
double  alpha 
)
virtual

Implements InterpolateBase.

Definition at line 336 of file Interpolate.C.

References InterpolateBase::attr_hdls, COM_call_function(), RocBlas::copy, and MAN_DEBUG.

337 {
338  if (attr_hdls[2] <= 0) return;
339 
340  MAN_DEBUG(3, ("Interpolate_Constant::run (bc) called with alpha:%e.\n", alpha));
341 
343 }
static int copy
Definition: RocBlas.h:34
void COM_call_function(const int wf, int argc,...)
Definition: roccom_c.C:48
int attr_hdls[4]
Definition: Interpolate.h:44
#define MAN_DEBUG(l, x)
Definition: rocman.h:98

Here is the call graph for this function:


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