-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathFieldNorm.cpp
More file actions
37 lines (31 loc) · 782 Bytes
/
Copy pathFieldNorm.cpp
File metadata and controls
37 lines (31 loc) · 782 Bytes
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
#include "ExtendedStateVector.h"
#include <iomanip>
int main(int argc, char* argv[])
{
if (argc == 4)
{
LoadParameters(argv[3]);
StateVector::ResetForParams();
}
PrintParameters();
ExtendedStateVector field;
if (argc >= 3)
{
field.p = std::stof(argv[2]);
field.x.LoadFromFile(argv[1]);
}
else
{
field.LoadFromFile(argv[1]);
}
flowParams.Ri = field.p;
std::cout << std::setprecision(20);
std::cout << "STATIONARY POINT "
<< field.p << " "
<< field.x.Norm() << " "
<< field.x.Energy() << " "
<< field.x.OtherAxis() << std::endl;
//field.x.AddBackground();
//field.x.RemovePhaseShift();
//field.PlotAll("plots");
}