v0.14.0
examplefast.cpp
Go to the documentation of this file.
1 #include <iostream>
2 using namespace std;
3 int main()
4 {
5  double x[3], y[3], n[3];
6 
7  y[0] = 0;
8  y[1] = 1;
9  y[2] = 2;
10  x[0] = 2;
11  x[1] = 3;
12  x[2] = 4;
13  n[0] = 5;
14  n[1] = 6;
15  n[2] = 7;
16  for(int i = 1; i < 10000000; i++)
17  {
18  y[0] = (x[0] + n[0]);
19  y[1] = (x[1] + n[1]);
20  y[2] = (x[2] + n[2]);
21 
22  x[0] = (y[0] - n[0]);
23  x[1] = (y[1] - n[1]);
24  x[2] = (y[2] - n[2]);
25 
26  n[0] = n[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]);
28  n[1] = n[1] + (y[1] - x[1]) - (y[1] - x[1]) + (y[1] - x[1])
29  - (y[1] - x[1]) + (y[1] - x[1]) - (y[1] - x[1]);
30  n[2] = n[2] + (y[2] - x[2]) - (y[2] - x[2]) + (y[2] - x[2])
31  - (y[2] - x[2]) + (y[2] - x[2]) - (y[2] - x[2]);
32  }
33  cout << y[0] << " " << y[1] << " " << y[2] << endl;
34 }
i
FTensor::Index< 'i', SPACE_DIM > i
Definition: hcurl_divergence_operator_2d.cpp:27
main
int main()
Definition: examplefast.cpp:3
convert.n
n
Definition: convert.py:82
std
Definition: enable_if.hpp:5