-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGmshReader.h
44 lines (35 loc) · 883 Bytes
/
GmshReader.h
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
#include <vector>
#include <iostream>
#include <sstream>
#include "MyPoint.h"
#include "streamIO.h"
using namespace std;
struct node_ident
{
vector<unsigned> id_node;
};
struct node_ident_msh: public node_ident
{
unsigned ident;
unsigned elem_typ;
unsigned nb_tags;
unsigned tag1;
unsigned tag2;
};
class GmshReader : public MyPoint{
public:
unsigned nbnode;
unsigned nbel_msh;
unsigned nbelm;
string fname;
GmshReader();
void GmshLoadMesh();
vector<MyPoint> coord_nodes;
vector<node_ident> id_nodes;
vector<node_ident_msh> id_nodes_msh;
private:
void read_mesh();
void construct_id_nodes();
GmshReader(const GmshReader &gmshReader); // override default copy constructor
GmshReader & operator = (const GmshReader &gmshReader); // and assignment operator
};