13 int main(
int argc,
char** argv){
15 if( argc < 4 || argc > 5){
16 cerr <<
"Wrong format. Should be:\n"
17 << argv[0] <<
" [file name] [type1] [type2] <type3>\n";
21 ifstream ifs( argv[1] );
23 int type1 = atoi( argv[2] );
24 int type2 = atoi( argv[3] );
27 type3 = atoi( argv[4] );
30 mesh.addCohesive( type1, type2, type3);
33 ostrstream str(line,
sizeof(line));
34 str << argv[1] <<
"." <<
"coh"<<
'\0';
35 ofstream ocohesive( str.str() );
39 ostrstream str1(line1,
sizeof(line1));
40 str1 << argv[1] <<
"." <<
"bound"<<
'\0';
41 ofstream obound( str1.str() );
42 mesh.write_boundary( obound );
Class Mesh is the main class that holds all information to describe the current state of the mesh...
int main(int argc, char *argv[])