-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathelements.h
More file actions
33 lines (24 loc) · 780 Bytes
/
Copy pathelements.h
File metadata and controls
33 lines (24 loc) · 780 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
#ifndef __ELEMENTS_H__
#define __ELEMENTS_H__
#include "domain.h"
#include "grid.h"
// Define triangular_element
// TODO: Make these generic elements
typedef struct
{
int id;
domain* cartesian_domain;
vertex* grid_vertex[3];
} triangular_element;
// Count of number of elements;
int _total_grid_elements;
// Create a global array of elements
triangular_element* _triangular_elements;
// Creates elements and stores it in the triangular elements list
int create_triangular_elements_for_cartesian_domain(domain* cartesian_domain);
// Add element indices to subdomains
int add_triangular_elements_to_subdomains(domain* cartesian_domain, int idx);
// Free memory allocated on heap
int cleanup_triangular_elements();
#define _triangular_elements_vertex_count 3;
#endif