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

Go to the source code of this file.

Classes

class  ModuleIMU
 
class  ModuleIMUConstraint
 

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 725 of file module-imu.cc.

References SetUDE().

726 {
728 
729  if (!SetUDE("imu", rf1)) {
730  delete rf1;
731 
732  silent_cerr("ModuleIMU: "
733  "module_init(" << module_name << ") "
734  "failed" << std::endl);
735 
736  return -1;
737  }
738 
740 
741  if (!SetUDE("imu" "constraint", rf2)) {
742  delete rf2;
743 
744  silent_cerr("ModuleIMUConstraint: "
745  "module_init(" << module_name << ") "
746  "failed" << std::endl);
747 
748  return -1;
749  }
750 
751  return 0;
752 }
bool SetUDE(const std::string &s, UserDefinedElemRead *rude)
Definition: userelem.cc:97

Here is the call graph for this function: