MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
module-journal_bearing.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-journal_bearing.h"
Include dependency graph for module-journal_bearing.cc:

Go to the source code of this file.

Functions

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

Definition at line 825 of file module-journal_bearing.cc.

References SetUDE().

Referenced by module_init().

826 {
827 #ifdef USE_AUTODIFF
829 
830  if (!SetUDE("journal" "bearing", rf))
831  {
832  delete rf;
833  return false;
834  }
835 
836  return true;
837 #else
838  return false;
839 #endif
840 }
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 847 of file module-journal_bearing.cc.

References journal_bearing_set().

848 {
849  if (!journal_bearing_set())
850  {
851  silent_cerr("journal_bearing: "
852  "module_init(" << module_name << ") "
853  "failed" << std::endl);
854 
855  return -1;
856  }
857 
858  return 0;
859 }
bool journal_bearing_set(void)

Here is the call graph for this function: