-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
82 lines (55 loc) · 2.64 KB
/
main.cpp
File metadata and controls
82 lines (55 loc) · 2.64 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
#include <iostream>
#include "DegreesOfFreedom/DegreeOfFreedom.h"
#include "PartialDifferentialEquations/SecondOrderLinearPDEProperties.h"
#include "Tests/SteadyState3DNeumann.h"
#include "Tests/SteadyStateDirichlet3D.h"
#include "Tests/LanczosEigenDecompositionTest.h"
#include "Tests/NumericalVectorTest.h"
#include "Tests/QRTest.h"
#include "Tests/OperationsCUDA.h"
#include "Tests/VectorOperationsTest.h"
#include "Tests/NumericalMatrixTest.h"
#include "StructuredMeshGeneration/MeshTest2D.h"
#include "BoundaryConditions/DomainBoundaryConditions.h"
#include "DegreesOfFreedom/DegreeOfFreedomTypes.h"
#include "Analysis/FiniteDifferenceAnalysis/StStFDTest.h"
#include "LinearAlgebra/Array/DecompositionMethods/DecompositionLUP.h"
#include "LinearAlgebra/FiniteDifferences/FDWeightCalculator.h"
#include <functional>
#include <list>
using namespace PartialDifferentialEquations;
using namespace LinearAlgebra;
using namespace DegreesOfFreedom;
int main() {
//auto analysisTest = new NumericalAnalysis::StStFDTest();
//auto neumannTest = new Tests::SteadyState3DNeumann();
//delete neumannTest;
/* auto lanczosTest = new Tests:: LanczosEigenDecompositionTest();
delete lanczosTest;*/
auto vectorTest = new NumericalVectorTest();
vectorTest->runTests();
Tests::NumericalMatrixTest::runTests();
//auto vectorTest = new NumericalVectorTest();
/* vectorTest->runTests();
auto numericalVector = NumericalVector<double>(10, MultiThread);
auto numericalVectorRawPtr = new NumericalVector<double>(10, MultiThread);
auto numericalVectorSharedPtr = make_shared<NumericalVector<double>>(10, MultiThread);
auto numericalVectorUniquePtr = make_unique<NumericalVector<double>>(10, MultiThread);
for (unsigned i = 0; i < 10; ++i) {
numericalVector[i] = i;
(*numericalVectorRawPtr)[i] = i;
(*numericalVectorSharedPtr)[i] = i;
(*numericalVectorUniquePtr)[i] = i;
}
NumericalVector<double> subtraction = NumericalVector<double>(10);
numericalVectorSharedPtr->subtract(numericalVectorSharedPtr, subtraction);
auto numericalVector2 = NumericalVector<double>(numericalVectorSharedPtr);
auto numericalVector4 = NumericalVector<double>(numericalVector);
auto numericalVector3 = NumericalVector<double>(10, MultiThread);
numericalVector3 = numericalVector2;*/
//auto qrTest = new Tests::QRTest();
//auto dirichletTest = new Tests::SteadyStateDirichlet3D();
//auto cudaOperations = new Tests::OperationsCUDA();
//auto singleThreadVectorOperations = new Tests::VectorOperationsTest();
cout << "y000000o" << endl;
}