MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
module-asynchronous_machine.cc File Reference
#include "mbconfig.h"
#include <cassert>
#include <cstdio>
#include <cmath>
#include <cfloat>
#include <iostream>
#include <iomanip>
#include <limits>
#include "dataman.h"
#include "userelem.h"
#include "module-asynchronous_machine.h"
Include dependency graph for module-asynchronous_machine.cc:

Go to the source code of this file.

Classes

class  asynchronous_machine
 

Functions

bool asynchronous_machine_set (void)
 
int module_init (const char *module_name, void *pdm, void *php)
 This function registers our user defined element for the math parser. More...
 

Function Documentation

bool asynchronous_machine_set ( void  )

Definition at line 1090 of file module-asynchronous_machine.cc.

References SetUDE().

Referenced by InitUDE(), and module_init().

1091 {
1092 #ifdef DEBUG
1093  std::cerr << __FILE__ <<":"<< __LINE__ << ":"<< __PRETTY_FUNCTION__ << std::endl;
1094 #endif
1095 
1097 
1098  if (!SetUDE("asynchronous_machine", rf)) {
1099  delete rf;
1100  return false;
1101  }
1102 
1103  return true;
1104 }
bool SetUDE(const std::string &s, UserDefinedElemRead *rude)
Definition: userelem.cc:97

Here is the call graph for this function:

int module_init ( const char *  module_name,
void *  pdm,
void *  php 
)

This function registers our user defined element for the math parser.

It is called when the "module load" statement appears in the input file.

Definition at line 1117 of file module-asynchronous_machine.cc.

References asynchronous_machine_set().

1118 {
1119  if (!asynchronous_machine_set()) {
1120  silent_cerr("asynchronous_machine: "
1121  "module_init(" << module_name << ") "
1122  "failed" << std::endl);
1123  return -1;
1124  }
1125 
1126  return 0;
1127 }
bool asynchronous_machine_set(void)

Here is the call graph for this function: