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

Go to the source code of this file.

Classes

class  DummyConstitutiveLaw< T, Tder >
 
struct  DummyCLR< T, Tder >
 

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 101 of file module-constlaw.cc.

References pHP, SetCL1D(), SetCL3D(), and SetCL6D().

102 {
103 #if 0
104  DataManager *pDM = (DataManager *)pdm;
105  MBDynParser *pHP = (MBDynParser *)php;
106 #endif
107 
110  if (!SetCL1D("dummy", rf1D)) {
111  delete rf1D;
112 
113  silent_cerr("DummyConstitutiveLaw1D: "
114  "module_init(" << module_name << ") "
115  "failed" << std::endl);
116 
117  return -1;
118  }
119 
121  if (!SetCL3D("dummy", rf3D)) {
122  delete rf3D;
123 
124  silent_cerr("DummyConstitutiveLaw3D: "
125  "module_init(" << module_name << ") "
126  "failed" << std::endl);
127 
128  return -1;
129  }
130 
132  if (!SetCL6D("dummy", rf6D)) {
133  delete rf6D;
134 
135  silent_cerr("DummyConstitutiveLaw6D: "
136  "module_init(" << module_name << ") "
137  "failed" << std::endl);
138 
139  return -1;
140  }
141 
142  return 0;
143 }
bool SetCL3D(const char *name, ConstitutiveLawRead< Vec3, Mat3x3 > *rf)
bool SetCL1D(const char *name, ConstitutiveLawRead< doublereal, doublereal > *rf)
bool SetCL6D(const char *name, ConstitutiveLawRead< Vec6, Mat6x6 > *rf)
static std::stack< const HighParser * > pHP
Definition: parser.cc:598

Here is the call graph for this function: