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

Go to the source code of this file.

Classes

class  MusclePennestriCL
 
class  MusclePennestriErgoCL
 
class  MusclePennestriReflexiveCL
 
struct  MusclePennestriCLR
 

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 447 of file module-muscles.cc.

References pHP, and SetCL1D().

448 {
449 #if 0
450  DataManager *pDM = (DataManager *)pdm;
451  MBDynParser *pHP = (MBDynParser *)php;
452 #endif
453 
455  if (!SetCL1D("muscle" "pennestri", rf1D)) {
456  delete rf1D;
457 
458  silent_cerr("MusclePennestriCL: "
459  "module_init(" << module_name << ") "
460  "failed" << std::endl);
461 
462  return -1;
463  }
464 
465  return 0;
466 }
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: