-
Notifications
You must be signed in to change notification settings - Fork 1
/
h2discreteflowfactorythread.cpp
68 lines (56 loc) · 1.62 KB
/
h2discreteflowfactorythread.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#include "h2discreteflowfactorythread.h"
#include "discreteflowfactory.h"
#include "actionhandler.h"
H2DiscreteFlowFactoryThread::H2DiscreteFlowFactoryThread(GroupRepresentation<H2Isometry> *rhoDomain,
GroupRepresentation<H2Isometry> *rhoImage,
LiftedGraphFunctionTriangulated<H2Point, H2Isometry> *domainFunction,
LiftedGraphFunctionTriangulated<H2Point, H2Isometry> *imageFunction) :
factory(rhoDomain, rhoImage, domainFunction, imageFunction)
{
factory.thread = this;
}
void H2DiscreteFlowFactoryThread::run()
{
factory.run();
}
void H2DiscreteFlowFactoryThread::setFlowChoice(int flowChoice)
{
factory.setFlowChoice(flowChoice);
}
void H2DiscreteFlowFactoryThread::iterate(uint N)
{
factory.iterate(N);
}
void H2DiscreteFlowFactoryThread::stopRunning()
{
factory.stopRunning();
}
uint H2DiscreteFlowFactoryThread::getNbIterations() const
{
return factory.getNbIterations();
}
double H2DiscreteFlowFactoryThread::getSupError() const
{
return factory.getSupError();
}
double H2DiscreteFlowFactoryThread::getEnergyError() const
{
return factory.getEnergyError();
}
void H2DiscreteFlowFactoryThread::updateSupError()
{
factory.updateSupError();
}
void H2DiscreteFlowFactoryThread::updateEnergyError()
{
factory.updateEnergyError();
}
void H2DiscreteFlowFactoryThread::updateErrors()
{
updateSupError();
updateEnergyError();
}
double H2DiscreteFlowFactoryThread::getTolerance() const
{
return factory.getTolerance();
}