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

Go to the source code of this file.

Classes

class  ContContactCL
 
struct  ContContactCLR
 
class  ContContact3DCL
 
struct  ContContact3DCLR
 

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 669 of file module-cont-contact.cc.

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

670 {
671 #if 0
672  DataManager *pDM = (DataManager *)pdm;
673  MBDynParser *pHP = (MBDynParser *)php;
674 #endif
675 
677  if (!SetCL1D("continuous" "contact", rf1D)) {
678  delete rf1D;
679 
680  silent_cerr("ContContactCL: "
681  "module_init(" << module_name << ") "
682  "failed" << std::endl);
683 
684  return -1;
685  }
686 
688  if (!SetCL3D("continuous" "contact", rf3D)) {
689  delete rf3D;
690 
691  silent_cerr("ContContact3DCL: "
692  "module_init(" << module_name << ") "
693  "failed" << std::endl);
694 
695  return -1;
696  }
697 
698  return 0;
699 }
bool SetCL3D(const char *name, ConstitutiveLawRead< Vec3, Mat3x3 > *rf)
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: