MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
module-FMU.cc File Reference
#include "module-FMU.h"
#include "solver.h"
Include dependency graph for module-FMU.cc:

Go to the source code of this file.

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 501 of file module-FMU.cc.

References SetUDE().

502 {
504 
505  if (!SetUDE("FMU", rf1)) {
506  delete rf1;
507 
508  silent_cerr("ModuleFMU: "
509  "module_init(" << module_name << ") "
510  "failed" << std::endl);
511 
512  return -1;
513  }
514 
515  return 0;
516 }
bool SetUDE(const std::string &s, UserDefinedElemRead *rude)
Definition: userelem.cc:97

Here is the call graph for this function: