-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathisdCore.h
executable file
·46 lines (39 loc) · 1.01 KB
/
isdCore.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
45
46
# include <stdio.h>
# include <stdlib.h>
# include <math.h>
# include <GL/glut.h>
#define DEBUG 0
#define WINDOW_HEIGHT 400
#define WINDOW_WIDTH 640
#define POSITION_X 5
#define POSITION_Y 5
#define WINDOW_TITLE "isdGLR!"
#define MSG_USAGE "USAGE: ./isdGLR <data-filename>\nLOADING: Default values\n"
#define MSG_ERROR_IO "\nWARNING: Cannot read from file\nLOADING: Default values\n"
#define ERRORISDGL -1
#define SUCCESSISDGL 1
typedef struct lorenz {
// Values to be plotted
double x,y,z;
// Lorenz Parameters
double sigma,ro,beta;
// Time
double t;
// Time variation
double dt;
// Max allowed iterations
int maxiters;
// Color scheme for trajectory
int scheme;
// Style (1 for points, 2 for dashed, other for line)
int style;
} Lorenz;
typedef struct point {
double x,y,z;
float r,g,b;
float opacity;
} Point;
int readLorenzDataFile(char * filePath, Lorenz * lorenzData);
void defaultLorenzValues(Lorenz * lorenzData);
void doLorenzStep(Lorenz * lorenzData);
void initializeNonParameters(Lorenz * lorenzData);