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

Go to the source code of this file.

Classes

class  DummyConstitutiveLaw< T, Tder >
 
class  DummyConstitutiveLaw< doublereal, doublereal >
 
class  DummyConstitutiveLaw< Vec3, Mat3x3 >
 
class  DummyConstitutiveLaw< Vec6, Mat6x6 >
 
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 304 of file module-constlaw-f90.cc.

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

305 {
306 #if 0
307  DataManager *pDM = (DataManager *)pdm;
308  MBDynParser *pHP = (MBDynParser *)php;
309 #endif
310 
313  if (!SetCL1D("dummyf90", rf1D)) {
314  delete rf1D;
315 
316  silent_cerr("DummyConstitutiveLaw1D: "
317  "module_init(" << module_name << ") "
318  "failed" << std::endl);
319 
320  return -1;
321  }
322 
324  if (!SetCL3D("dummyf90", rf3D)) {
325  delete rf3D;
326 
327  silent_cerr("DummyConstitutiveLaw3D: "
328  "module_init(" << module_name << ") "
329  "failed" << std::endl);
330 
331  return -1;
332  }
333 
335  if (!SetCL6D("dummyf90", rf6D)) {
336  delete rf6D;
337 
338  silent_cerr("DummyConstitutiveLaw6D: "
339  "module_init(" << module_name << ") "
340  "failed" << std::endl);
341 
342  return -1;
343  }
344 
345  return 0;
346 }
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: