-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmps0.cpp
49 lines (46 loc) · 952 Bytes
/
mps0.cpp
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
//
// voronoi for z3pt32d.cpp results
// show height fluctuations
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/resource.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <cmath>
#include<iostream>
#include<fstream>
#include<sstream>
#include<string>
#include<iterator>
#include<vector>
#include<algorithm>
#include<complex>
#include <grace_np.h>
#include <stdlib.h>
#include"myGrace.h"
#include"mkRandom.h"
#include"atom.h"
#include"layer.h"
#include<complex>
using namespace std;
int
main (int argc, char *argv[])
{
if (argc < 2)
{
cout << "Usage:: <datafile> \n";
exit (0);
}
//initilize the random() buffer
string r_buffer;
r_buffer.resize (257);
mk_random (r_buffer.size (), r_buffer);
//prepare the layer data
layer layer0;
layer0.fn_data = string (argv[1]);
layer0.read_data ();
layer0.init (1.);
layer0.w_voronoi ();
}