-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_tilt.cpp
More file actions
33 lines (32 loc) · 834 Bytes
/
run_tilt.cpp
File metadata and controls
33 lines (32 loc) · 834 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
#include <iostream>
#include <fstream>
#include <random>
#include <algorithm>
#include <math.h>
#include <ctime>
#include <string>
#include <vector>
#include <mpi.h>
#include <chrono>
#include "saruprng.hpp"
#include "dimers_tilt.hpp"
using namespace std;
int main(int argc, char* argv[]) {
// Initialize MPI
MPI_Init(&argc, &argv);
DimerTilt system;
system.GetParams("param", argc, argv);
system.Equilibriate(system.cycles_equil);
ofstream myfile_equil;
myfile_equil.precision(10);
myfile_equil.open("config_equil.xyz", std::ios_base::app);
system.DumpXYZ(myfile_equil);
system.Simulate(system.cycles);
system.DumpPhi();
system.DumpBond();
system.RDFAnalyzer();
system.DumpVoronoi();
// Finalize the MPI environment
MPI_Barrier(MPI_COMM_WORLD);
MPI_Finalize();
}