Merged function containers. Added HDF5 output and reworked Logger class into Base class and 2 derived classes ASCI_Logger and H5_Logger
30 lines
496 B
C++
30 lines
496 B
C++
//
|
|
// main.cpp
|
|
// mc_electron
|
|
//
|
|
// Created by Christian Reiling on 20.09.18.
|
|
// Copyright © 2018 Christian Reiling. All rights reserved.
|
|
//
|
|
|
|
#include "simulation.hpp"
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
int main(int argc, const char * argv[]) {
|
|
clock_t start = clock();
|
|
/*
|
|
try {
|
|
Simulation Sim;
|
|
Sim.doit();
|
|
} catch (MyException& caught) {
|
|
cout<<caught.what()<<endl;
|
|
exit(1);
|
|
}
|
|
*/
|
|
Simulation Sim;
|
|
Sim.doit();
|
|
cout<<"Duration: "<< ( clock() - start ) / (double) CLOCKS_PER_SEC <<'\n';
|
|
}
|