This is an example of how to use the netdem library.
#include <iostream>
#include <string>
using namespace std;
void NutInBolt();
int main(
int argc,
char **argv) {
if (argc == 1) {
cout << "please specify the id of the task. \n"
<< "e.g.: netdem_example_contact_mechanics i" << endl;
cout << ">> 0: nut in bolt" << endl;
return -1;
}
int id = atof(argv[1]);
switch (id) {
case 0:
NutInBolt();
break;
default:
break;
}
return 0;
}
int main(int argc, char *argv[])
Definition main.cpp:18