#include "mbconfig.h"
#include <iostream>
#include <limits>
#include <cfloat>
#include "module-wheel4.h"
#include "dataman.h"
#include "userelem.h"
#include "simentity.h"
#include "body.h"
Go to the source code of this file.
|
| int | module_init (const char *module_name, void *pdm, void *php) |
| | This function registers our user defined element for the math parser. More...
|
| |
| 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 2047 of file module-wheel4.cc.
References HighParser::GetString(), HighParser::IsArg(), pHP, and SetUDE().
2050 if (!
SetUDE(
"rigid" "ring" "tire", rf)) {
2052 silent_cerr(
"RigidRingTire: "
2053 "module_init(" << module_name <<
") "
2054 "failed" << std::endl);
2061 while (pHP->
IsArg()) {
2064 silent_cerr(
"RigidRingTire: "
2065 "unable to get arg; "
2066 "module_init(" << module_name <<
") "
2067 "failed" << std::endl);
2074 silent_cerr(
"Wheel4: "
2075 "unable to set parser for name \"" << s <<
"\"; "
2076 "module_init(" << module_name <<
") "
2077 "failed" << std::endl);
2083 if (!
SetUDE(
"timestep", rf2)) {
2085 silent_cerr(
"module-timestep: "
2086 "module_init(" << module_name <<
") "
2087 "failed" << std::endl);
virtual std::string GetString(const std::string &sDefVal)
bool SetUDE(const std::string &s, UserDefinedElemRead *rude)
static std::stack< const HighParser * > pHP