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

Go to the source code of this file.

Classes

class  InlineFriction
 

Functions

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

Definition at line 1155 of file module-inline_friction.cc.

References SetUDE().

Referenced by InitUDE(), and module_init().

1156 {
1158 
1159  if (!SetUDE("inline" "friction", rf))
1160  {
1161  delete rf;
1162  return false;
1163  }
1164 
1165  return true;
1166 }
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 1173 of file module-inline_friction.cc.

References inline_friction_set().

1174 {
1175  if (!inline_friction_set())
1176  {
1177  silent_cerr("inline friction: "
1178  "module_init(" << module_name << ") "
1179  "failed" << std::endl);
1180 
1181  return -1;
1182  }
1183 
1184  return 0;
1185 }
bool inline_friction_set(void)

Here is the call graph for this function: