Go for gcc-11.2
This commit is contained in:
부모
e1b2b0f1ec
커밋
c9d2cd17f6
2
Makefile
2
Makefile
|
@ -26,7 +26,7 @@ BIN_DIR = $(BASE_DIR)/bin
|
|||
SRC_EXT = cc
|
||||
|
||||
# Compiler choice
|
||||
CXX = g++
|
||||
CXX = g++-11.2
|
||||
CXXFLAGS = -fopenmp
|
||||
LDFLAGS = -O3 -w -fopenmp
|
||||
# Compilation command
|
||||
|
|
|
@ -60,6 +60,10 @@ int main(int argc, char* argv[])
|
|||
|
||||
while (Secs_left > 0) {
|
||||
|
||||
cout << "StartTime = " << StartTime << endl;
|
||||
cout << "ActualTime = " << ActualTime << endl;
|
||||
cout << "Secs_left = " << Secs_left << endl;
|
||||
|
||||
iN += 1;
|
||||
int N = Nstep * iN;
|
||||
DP L = N;
|
||||
|
|
|
@ -81,12 +81,17 @@ int main(int argc, char* argv[])
|
|||
|
||||
RecMat<complex<DP> > FT(0.0, Npts_x, Npts_t);
|
||||
DP twopioverL = twoPI/L;
|
||||
|
||||
DP FFsq;
|
||||
complex<DP> exp_ik, exp_miomega;
|
||||
while (RAW_infile.peek() != EOF) {
|
||||
RAW_infile >> omega >> iK >> FF >> dev >> label;
|
||||
FFsq = FF * FF;
|
||||
exp_ik = exp(II * (iK * twopioverL));
|
||||
exp_miomega = exp(-II * omega);
|
||||
for (int ix = 0; ix < Npts_x; ++ix)
|
||||
for (int it = 0; it < Npts_t; ++it)
|
||||
FT[ix][it] += FF * FF * exp(II * (iK * twopioverL * xlattice[ix] - omega * tlattice[it]));
|
||||
//FT[ix][it] += FF * FF * exp(II * (iK * twopioverL * xlattice[ix] - omega * tlattice[it]));
|
||||
FT[ix][it] = FFsq * pow(exp_ik, xlattice[ix]) * pow(exp_miomega, tlattice[it]);
|
||||
}
|
||||
RAW_infile.close();
|
||||
|
||||
|
|
불러오는 중...
Reference in New Issue