Browse Source

Go for gcc-11.2

master
Jean-Sébastien 2 years ago
parent
commit
c9d2cd17f6

+ 1
- 1
Makefile View File

26
 SRC_EXT = cc
26
 SRC_EXT = cc
27
 
27
 
28
 # Compiler choice
28
 # Compiler choice
29
-CXX = g++
29
+CXX = g++-11.2
30
 CXXFLAGS = -fopenmp
30
 CXXFLAGS = -fopenmp
31
 LDFLAGS = -O3 -w -fopenmp
31
 LDFLAGS = -O3 -w -fopenmp
32
 # Compilation command
32
 # Compilation command

+ 4
- 0
src/EXECS/LiebLin_Data_Daemon_Nscaling.cc View File

60
 
60
 
61
     while (Secs_left > 0) {
61
     while (Secs_left > 0) {
62
 
62
 
63
+      cout << "StartTime = " << StartTime << endl;
64
+      cout << "ActualTime = " << ActualTime << endl;
65
+      cout << "Secs_left = " << Secs_left << endl;
66
+
63
       iN += 1;
67
       iN += 1;
64
       int N = Nstep * iN;
68
       int N = Nstep * iN;
65
       DP L = N;
69
       DP L = N;

+ 7
- 2
src/EXECS/LiebLin_Fourier_to_x_t_from_RAW.cc View File

81
 
81
 
82
     RecMat<complex<DP> > FT(0.0, Npts_x, Npts_t);
82
     RecMat<complex<DP> > FT(0.0, Npts_x, Npts_t);
83
     DP twopioverL = twoPI/L;
83
     DP twopioverL = twoPI/L;
84
-
84
+    DP FFsq;
85
+    complex<DP> exp_ik, exp_miomega;
85
     while (RAW_infile.peek() != EOF) {
86
     while (RAW_infile.peek() != EOF) {
86
       RAW_infile >> omega >> iK >> FF >> dev >> label;
87
       RAW_infile >> omega >> iK >> FF >> dev >> label;
88
+      FFsq = FF * FF;
89
+      exp_ik = exp(II * (iK * twopioverL));
90
+      exp_miomega = exp(-II * omega);
87
       for (int ix = 0; ix < Npts_x; ++ix)
91
       for (int ix = 0; ix < Npts_x; ++ix)
88
 	for (int it = 0; it < Npts_t; ++it)
92
 	for (int it = 0; it < Npts_t; ++it)
89
-	  FT[ix][it] += FF * FF * exp(II * (iK * twopioverL * xlattice[ix] - omega * tlattice[it]));
93
+	  //FT[ix][it] += FF * FF * exp(II * (iK * twopioverL * xlattice[ix] - omega * tlattice[it]));
94
+	  FT[ix][it] = FFsq * pow(exp_ik, xlattice[ix]) * pow(exp_miomega, tlattice[it]);
90
     }
95
     }
91
     RAW_infile.close();
96
     RAW_infile.close();
92
 
97
 

Loading…
Cancel
Save