-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
51 lines (38 loc) · 833 Bytes
/
main.cpp
File metadata and controls
51 lines (38 loc) · 833 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
/*
* File: main.cpp
* Author: Mark Wittekind
*
* Created on March 5, 2015, 6:03 PM
*/
#include <cstdlib>
#include "CLattice.h"
#include <fstream>
#include <streambuf>
#include <iostream>
#include <vector>
#include "CObject.h"
using namespace std;
/*
*
*/
int main(int argc, char** argv) {
//CONSTANTS
const unsigned short WIDTH = 50;
const unsigned short HEIGHT = 70;
//output stream for debugging
streambuf * buf;
buf = cout.rdbuf();
ostream debug_stream(buf);
//constants that will be command line params
short MAXTIMESTEPS = 100;
float TIMESTEP = 1;
float kB = 1;
float T = 1;
//"calculated" constants
vector<CObject> objects;
CLattice lattice(WIDTH,HEIGHT);
objects.push_back(lattice);
for(int t = 0; t<MAXTIMESTEPS; t+=TIMESTEP)
lattice.print_all(debug_stream);
return 0;
}