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

Go to the source code of this file.

Classes

class  Wheel2
 

Functions

bool wheel2_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

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 587 of file module-wheel2.cc.

References wheel2_set().

588 {
589  if (!wheel2_set()) {
590  silent_cerr("Wheel2: "
591  "module_init(" << module_name << ") "
592  "failed" << std::endl);
593  return -1;
594  }
595  return 0;
596 }
bool wheel2_set(void)

Here is the call graph for this function:

bool wheel2_set ( void  )

Definition at line 573 of file module-wheel2.cc.

References SetUDE().

Referenced by InitUDE(), and module_init().

574 {
576 
577  if (!SetUDE("wheel2", rf)) {
578  delete rf;
579  return false;
580  }
581 
582  return true;
583 }
bool SetUDE(const std::string &s, UserDefinedElemRead *rude)
Definition: userelem.cc:97

Here is the call graph for this function: