-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathverification.html
More file actions
166 lines (143 loc) · 8.19 KB
/
verification.html
File metadata and controls
166 lines (143 loc) · 8.19 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>SMG2S - Start with SMG2S</title>
<!-- CSS -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Josefin+Sans:300,400|Roboto:300,400,500">
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="assets/css/animate.css">
<link rel="stylesheet" href="assets/css/style.css">
<link rel="stylesheet" href="assets/css/style_perso.css">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- Favicon and touch icons -->
<link rel="shortcut icon" href="assets/ico/favicon.png">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="assets/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="assets/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="assets/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="assets/ico/apple-touch-icon-57-precomposed.png">
</head>
<body>
<!-- Top content -->
<div class="top-content">
<!-- Top menu -->
<nav class="navbar navbar-inverse" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#top-navbar-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">SMG2S</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="top-navbar-1">
<ul class="nav navbar-nav navbar-right">
<li><a href="index.html">Home</a></li>
<li><a href="firststep.html" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Installation<span class="caret"></span></a>
<ul class="dropdown-menu" color="Black">
<li><a href="startSMG2S.html">Start with SMG2S</a></li>
<li><a href="startGUI.html">Start with the GUI</a></li>
</ul>
</li>
<li><a href="howtouse.html">Tutorials</a></li>
<li><a href="verification.html">Verification</a></li>
<li><a href="example.html">Interface</a></li>
<li><a href="project.html">Contact us</a></li>
<li><a href="faq.html">FAQ</a></li>
<li><a class="btn btn-link-3" href="download.html">Download</a></li>
</ul>
</div>
</div>
</nav>
</div>
<!-- Features -->
<div class="features-container section-container">
<div class="container">
<div class="row">
<div class="col-sm-12 features section-description" style = " padding-left: 20%; padding-right: 20%">
<h3>Verification of Spectrum</h3>
</div>
<div class="col-sm-12" style = " padding-left: 20%; padding-right: 20%">
<p align="left">SMG2S provides the functionality to verify the abilibity to keep given spectrum. In the directory of <code>verification</code>. The implementation of the functionality is <code>powerInverse.cpp</code>.</p>
<p align="left"> Compile : </p>
<pre align="left"><code>make</code></pre>
<p align="left"> This will generate an executable <code>powerInverse.exe</code> </p>
<p align="left">The given spectrum is stored in a file <code>vector.txt</code> by the matrix-market vector format.</p>
<pre align="left"><code>%%MatrixMarket matrix coordinate complex general</code>
<code>3 3 3</code>
<code>1 10 6.5154</code>
<code>2 10.6288 3.4790</code>
<code>3 10.7621 5.0540</code>
<code>...</code></pre>
<p align="left">Running script:</p>
<pre align="left"><code>#!/bin/bash
EXEC=./powerInverse.exe
N=100
L=10
TEST_TOL=0.00001
DEGREE=4
LENGTH=$(awk 'NR==2{print $1}' vector.txt)
echo "Test Eigenvalues number = "${LENGTH}
for((i=3;i<=${LENGTH}+2;i++))
do
real=$(awk 'NR=='$i'{print $2}' vector.txt)
imag=$(awk 'NR=='$i'{print $3}' vector.txt)
mpirun -np 1 ${EXEC} -n ${N} -l ${L} -eps_monitor_conv -eps_power_shift_type constant -st_type sinvert -exact_value ${real}+${imag}i -test_tol ${TEST_TOL} -degree ${DEGREE}
done
</code></pre>
<p align="justify"> Suppose the result is stored in <code>vector1_results.txt</code>. With the help of <code>traitement.sh</code>, <code>vector1_results.txt</code> can be cleaned and stored with matrix market format into <code>vector1_results_clean.txt</code>. The 1st and 2nd arugments for the execution are seperately the initial results file and the final cleaned and formatted file. </p>
<pre align="left"><code>./traitement.sh vector1_results.txt vector1_results_clean.txt</code></pre>
<p align="left"> The verification results can be compared by the proposed <strong>Graphic User Interface</strong>: </p>
<img src="img/home_screen.png" class="img-fluid" alt="Responsive image">
</div>
<div class="col-sm-12 features section-description" style = " padding-left: 20%; padding-right: 20%">
<div class="divider-1"><div class="line"></div></div>
<h3>How to use the GUI ?</h3>
<div class="divider-1"><div class="line"></div></div>
<p>We recommand to you to see the example for learn how work the GUI of SMG2S and how use it.</p>
<p>
<a href="howtouse.html#ExGUI" class="btn btn-warning btn-lg">
<span class="fa fa-external-link"></span> SMG2S GUI Example
</a>
</p>
</div>
</div>
</div>
</div>
<!-- Footer -->
<footer>
<div class="container">
<div class="row">
<div class="col-sm-12 footer-copyright">
Edit in <a href="maisondelasimulation.html">Maison de la Simulation</a> by <a href="https://brunowu.github.io/">Mr. Xinzhe Wu</a>
</div>
<div class="col-sm-12 footer-copyright">
<a href="credit.html">Attribution</a> - Designed by Quentin Petit
</div>
</div>
</div>
</footer>
<!-- Javascript -->
<script src="assets/js/jquery-1.11.1.min.js"></script>
<script src="assets/bootstrap/js/bootstrap.min.js"></script>
<script src="assets/js/jquery.backstretch.min.js"></script>
<script src="assets/js/wow.min.js"></script>
<script src="assets/js/retina-1.1.0.min.js"></script>
<script src="assets/js/scripts.js"></script>
<!--[if lt IE 10]>
<script src="assets/js/placeholder.js"></script>
<![endif]-->
</body>
</html>