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

Go to the source code of this file.

Classes

class  HuntCrossleyCL
 
struct  HuntCrossleyCLR
 

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 237 of file module-hunt-crossley.cc.

References pHP, and SetCL1D().

238 {
239 #if 0
240  DataManager *pDM = (DataManager *)pdm;
241  MBDynParser *pHP = (MBDynParser *)php;
242 #endif
243 
245  if (!SetCL1D("hunt" "crossley", rf1D)) {
246  delete rf1D;
247 
248  silent_cerr("HuntCrossleyCL: "
249  "module_init(" << module_name << ") "
250  "failed" << std::endl);
251 
252  return -1;
253  }
254 
255  return 0;
256 }
bool SetCL1D(const char *name, ConstitutiveLawRead< doublereal, doublereal > *rf)
static std::stack< const HighParser * > pHP
Definition: parser.cc:598

Here is the call graph for this function: