Browse Source

Go for gcc-11.2

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

+ 1
- 1
Makefile View File

@@ -26,7 +26,7 @@ BIN_DIR = $(BASE_DIR)/bin
26 26
 SRC_EXT = cc
27 27
 
28 28
 # Compiler choice
29
-CXX = g++
29
+CXX = g++-11.2
30 30
 CXXFLAGS = -fopenmp
31 31
 LDFLAGS = -O3 -w -fopenmp
32 32
 # Compilation command

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

@@ -60,6 +60,10 @@ int main(int argc, char* argv[])
60 60
 
61 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 67
       iN += 1;
64 68
       int N = Nstep * iN;
65 69
       DP L = N;

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

@@ -81,12 +81,17 @@ int main(int argc, char* argv[])
81 81
 
82 82
     RecMat<complex<DP> > FT(0.0, Npts_x, Npts_t);
83 83
     DP twopioverL = twoPI/L;
84
-
84
+    DP FFsq;
85
+    complex<DP> exp_ik, exp_miomega;
85 86
     while (RAW_infile.peek() != EOF) {
86 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 91
       for (int ix = 0; ix < Npts_x; ++ix)
88 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 96
     RAW_infile.close();
92 97
 

Loading…
Cancel
Save