MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
module-eu2phi.cc File Reference
#include "mbconfig.h"
#include <cmath>
#include <cfloat>
#include "dataman.h"
#include "tpldrive.h"
#include "Rot.hh"
Include dependency graph for module-eu2phi.cc:

Go to the source code of this file.

Classes

class  Eu2PhiWrap
 
struct  Eu2PhiDCR
 

Functions

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

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 148 of file module-eu2phi.cc.

References pHP, and SetDC3D().

149 {
150 #if 0
151  DataManager *pDM = (DataManager *)pdm;
152  MBDynParser *pHP = (MBDynParser *)php;
153 #endif
154 
156 
157  if (!SetDC3D("eu2phi", rf)) {
158  delete rf;
159 
160  silent_cerr("Eu2PhiDCR: "
161  "module_init(" << module_name << ") "
162  "failed" << std::endl);
163 
164  return -1;
165  }
166 
167  return 0;
168 }
bool SetDC3D(const char *name, TplDriveCallerRead< Vec3 > *rf)
static std::stack< const HighParser * > pHP
Definition: parser.cc:598

Here is the call graph for this function: