forked from BorysTheDev/EPolarization
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
39 lines (31 loc) · 778 Bytes
/
main.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
#include <iostream>
#include "calc_manager.h"
#include "curve.h"
#include "incident_field.h"
#include "incident_field_package.h"
#include "box.h"
#include "helper.h"
int main(int argc, char** argv)
{
double k = 5 * M_PI;
double alpha = 0;
int curvesNumber = 1;
if (argc > 1)
curvesNumber = atoi(argv[1]);
DonationBox<Curve> listCurves;
for (int i = 0; i < curvesNumber; i++)
listCurves << new Line( { -1 + 2 * i, 4 }, { 0 + 2 * i, 3 });
BlackBox<Curve> curvesSimple(listCurves);
EPolarizationField field(k, alpha);
IncidentFieldPackage fields(k);
fields.addIncidentField(field);
Given given(k, listCurves, fields);
switch (argc) {
case 5:
case 4:
case 3:
given.points = atoi(argv[2]);
}
CalcManager cm(given);
cm.run();
}