-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
58 lines (40 loc) · 974 Bytes
/
main.cpp
File metadata and controls
58 lines (40 loc) · 974 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#include <iostream>
#include <math.h>
#include <cstring>
#include <string>
#include <limits.h>
#include <unistd.h>
#include <fstream>
#include <sstream>
#include <vector>
#include <algorithm>
#include <assert.h>
#include <memory>
#include "mathOperations.h"
#include "Mesh.cpp"
#include "findFiles.h"
template <typename T>
std::ostream& operator<<(std::ostream& os, const std::vector<T>& v)
{
os << "[ \n";
for (int i = 0; i < v.size(); ++i) {
os << v[i];
}
os << "]\n";
return os;
}
using namespace std;
int main()
{
checkCaseStructure();
Mesh polyMesh;
polyMesh.computeFaceWeightingFactor();
/*// Print single point
cout << polyMesh.pointList_[0] << endl;
// Sums points coordinates between two meshes
auto a = polyMesh.pointList_ + polyMesh.pointList_;
cout << "my directory is " << getExecutablePath() << endl;
*/
polyMesh.faceList_[0].computeFaceAreaVector();
return 0;
}