Skip to content

Commit 9018250

Browse files
committed
Fix: Fix the compile error
1 parent 7d638e7 commit 9018250

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

source/module_esolver/esolver_fp.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33

44
#include "esolver.h"
55

6+
#ifndef __MPI
7+
#include <chrono>
8+
#endif
9+
610
//! plane wave basis
711
#include "module_basis/module_pw/pw_basis.h"
812

source/module_esolver/esolver_ks.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
#ifndef ESOLVER_KS_H
22
#define ESOLVER_KS_H
33

4-
#ifdef __MPI
5-
#include <mpi.h>
6-
#else
7-
#include <chrono>
8-
#endif
9-
104
#include <cstring>
115
//#include <fstream>
126

source/module_esolver/esolver_of_tool.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,8 +410,8 @@ void ESolver_OF::print_info(const bool conv_esolver)
410410
= (std::chrono::duration_cast<std::chrono::microseconds>(std::chrono::system_clock::now() - this->iter_time)).count()
411411
/ static_cast<double>(1e6);
412412
#endif
413-
std::cout << " " << std::setw(8) << iteration << std::setw(18) << std::scientific << std::setprecision(8)
414-
<< this->energy_current_ * ModuleBase::Ry_to_eV
413+
std::cout << " " << std::setw(8) << iteration
414+
<< std::setw(18) << std::scientific << std::setprecision(8) << this->energy_current_ * ModuleBase::Ry_to_eV
415415
<< std::setw(18) << (this->energy_current_ - this->energy_last_) * ModuleBase::Ry_to_eV
416416
<< std::setw(13) << std::setprecision(4) << this->pelec->eferm.get_efval(0) * ModuleBase::Ry_to_eV
417417
<< std::setw(13) << std::setprecision(4) << this->normdLdphi_

0 commit comments

Comments
 (0)