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

Go to the source code of this file.

Classes

class  ModuleTemplate
 

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 225 of file module-template2.cc.

References SetUDE().

226 {
228 
229  if (!SetUDE("template2", rf)) {
230  delete rf;
231 
232  silent_cerr("module-template2: "
233  "module_init(" << module_name << ") "
234  "failed" << std::endl);
235 
236  return -1;
237  }
238 
239  return 0;
240 }
bool SetUDE(const std::string &s, UserDefinedElemRead *rude)
Definition: userelem.cc:97

Here is the call graph for this function: