MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
module-loadinc.cc File Reference
#include "mbconfig.h"
#include <iostream>
#include <cfloat>
#include <vector>
#include "solver.h"
#include "dataman.h"
#include "userelem.h"
#include "driven.h"
#include "Rot.hh"
Include dependency graph for module-loadinc.cc:

Go to the source code of this file.

Classes

class  LoadIncNorm
 
struct  LoadIncNorm::NodeData
 
class  LoadIncForce
 

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 1031 of file module-loadinc.cc.

References SetUDE().

1032 {
1033  UserDefinedElemRead *rf;
1034 
1035  rf = new UDERead<LoadIncForce>;
1036  if (!SetUDE("load" "increment" "force", rf)) {
1037  delete rf;
1038 
1039  silent_cerr("module-loadinc: "
1040  "module_init(" << module_name << ") "
1041  "failed" << std::endl);
1042 
1043  return -1;
1044  }
1045 
1046  rf = new UDERead<LoadIncNorm>;
1047  if (!SetUDE("load" "increment" "normalization", rf)) {
1048  delete rf;
1049 
1050  silent_cerr("module-loadinc: "
1051  "module_init(" << module_name << ") "
1052  "failed" << std::endl);
1053 
1054  return -1;
1055  }
1056 
1057  return 0;
1058 }
bool SetUDE(const std::string &s, UserDefinedElemRead *rude)
Definition: userelem.cc:97

Here is the call graph for this function: