MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
module-ballbearing_contact.cc File Reference
#include <limits>
#include <iostream>
#include <iomanip>
#include <cfloat>
#include <cassert>
#include <cmath>
#include <cstring>
#include <ctime>
#include <dataman.h>
#include <userelem.h>
#include "module-ballbearing_contact.h"
Include dependency graph for module-ballbearing_contact.cc:

Go to the source code of this file.

Functions

bool ballbearing_contact_set (void)
 
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

bool ballbearing_contact_set ( void  )

Definition at line 924 of file module-ballbearing_contact.cc.

References SetUDE().

Referenced by module_init().

925 {
926 #ifdef USE_AUTODIFF
928 
929  if (!SetUDE("ball" "bearing" "contact", rf))
930  {
931  delete rf;
932  return false;
933  }
934 
935  return true;
936 #else
937  return false;
938 #endif
939 }
bool SetUDE(const std::string &s, UserDefinedElemRead *rude)
Definition: userelem.cc:97

Here is the call graph for this function:

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 946 of file module-ballbearing_contact.cc.

References ballbearing_contact_set().

947 {
949  {
950  silent_cerr("ballbearing_contact: "
951  "module_init(" << module_name << ") "
952  "failed" << std::endl);
953 
954  return -1;
955  }
956 
957  return 0;
958 }
bool ballbearing_contact_set(void)

Here is the call graph for this function: