v0.14.0
littlefast.cpp
Go to the documentation of this file.
1 #include <iostream>
2 
3 int main()
4 {
5  double y[3], x[3], n[3];
6 
7  y[0] = 0;
8  y[1] = 1;
9  y[2] = 2;
10 
11  x[0] = 2;
12  x[1] = 3;
13  x[2] = 4;
14 
15  n[0] = 5;
16  n[1] = 6;
17  n[2] = 7;
18 
19  for(int i = 0; i < 100000000; i++)
20  {
21  // y[0]=y[0]+n[0];
22  // y[1]=y[1]+n[1];
23  // y[2]=y[2]+n[2];
24 
25  n[0] += (y[0] - x[0]) - (y[0] - x[0]) + (y[0] - x[0]) - (y[0] - x[0])
26  + (y[0] - x[0]) - (y[0] - x[0]) + (y[0] - x[0]) - (y[0] - x[0])
27  + (y[0] - x[0]) - (y[0] - x[0]) + (y[0] - x[0]) - (y[0] - x[0])
28  + (y[0] - x[0]) - (y[0] - x[0]) + (y[0] - x[0]) - (y[0] - x[0]);
29  n[1] += (y[1] - x[1]) - (y[1] - x[1]) + (y[1] - x[1]) - (y[1] - x[1])
30  + (y[1] - x[1]) - (y[1] - x[1]) + (y[1] - x[1]) - (y[1] - x[1])
31  + (y[1] - x[1]) - (y[1] - x[1]) + (y[1] - x[1]) - (y[1] - x[1])
32  + (y[1] - x[1]) - (y[1] - x[1]) + (y[1] - x[1]) - (y[1] - x[1]);
33  n[2] += (y[2] - x[2]) - (y[2] - x[2]) + (y[2] - x[2]) - (y[2] - x[2])
34  + (y[2] - x[2]) - (y[2] - x[2]) + (y[2] - x[2]) - (y[2] - x[2])
35  + (y[2] - x[2]) - (y[2] - x[2]) + (y[2] - x[2]) - (y[2] - x[2])
36  + (y[2] - x[2]) - (y[2] - x[2]) + (y[2] - x[2]) - (y[2] - x[2]);
37 
38  y[0] += x[0] + n[0];
39  y[1] += x[1] + n[1];
40  y[2] += x[2] + n[2];
41  }
42  std::cout << y[0] << " " << y[1] << " " << y[2] << std::endl;
43 }
i
FTensor::Index< 'i', SPACE_DIM > i
Definition: hcurl_divergence_operator_2d.cpp:27
convert.n
n
Definition: convert.py:82
main
int main()
Definition: littlefast.cpp:3