Ticket #50687: patch-nglib-ng_vol.cpp.diff
File patch-nglib-ng_vol.cpp.diff, 1.1 KB (added by mbrethen, 9 years ago) |
---|
-
nglib/ng_vol.cpp
old new 1 /* 2 original from Joachim Schoeberl 3 ..../netgen-4.9.13/nglib/ng_vol.cpp 4 License: LGPL 5 */ 1 6 #include <iostream> 2 7 #include <fstream> 8 // added by wittig 2.dec 2013 9 #include <mystdlib.h> 3 10 4 11 using namespace std; 5 12 … … 11 18 { 12 19 using namespace nglib; 13 20 14 cout << "Netgen Testing" << endl; 21 // changed by wittig 2.dec 2013 22 //cout << "Netgen Testing" << endl; 23 cout << "Netgen tet-mesher" << endl; 15 24 16 25 if (argc < 2) 17 26 { … … 64 73 mp.maxh = 1e6; 65 74 mp.fineness = 1; 66 75 mp.second_order = 0; 76 // added by wittig 2.dec 2013 77 if (argc == 3) mp.maxh = atof(argv[2]); 67 78 68 79 cout << "start meshing" << endl; 69 80 Ng_GenerateVolumeMesh (mesh, &mp); 70 81 cout << "meshing done" << endl; 71 82 72 83 // volume mesh output 84 // deactivated by wittig 2.dec 2013 85 /* 73 86 np = Ng_GetNP(mesh); 74 87 cout << "Points: " << np << endl; 75 88 … … 87 100 cout << i << ": " << tet[0] << " " << tet[1] 88 101 << " " << tet[2] << " " << tet[3] << endl; 89 102 } 103 */ 90 104 91 105 Ng_SaveMesh(mesh,"test.vol"); 92 106