Files
katrin-plasma/src/mc_electron/main.cpp
T
Christian 62772f8477 Restructuring Code. Removed some small classes which provided only 1 function, like parameter. Now each class calls it own parameters and stores them as static const.
Merged function containers.

Added HDF5 output and reworked Logger class into Base class and 2 derived classes ASCI_Logger and H5_Logger
2019-04-02 10:44:33 +02:00

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';
}