Skip to content

Commit 3a9a2a8

Browse files
author
abacus_fixer
committed
add a warning quit in dftu
1 parent c2fa3ac commit 3a9a2a8

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

source/source_pw/module_pwdft/dftu_base.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ void Plus_U_Base::init_base(UnitCell& cell,
4848
ModuleBase::TITLE("Plus_U_Base", "init_base");
4949

5050
#ifndef __MPI
51-
std::cout << "DFT+U module is only accessible in mpi version" << std::endl;
52-
exit(0);
51+
ModuleBase::WARNING_QUIT("Plus_U_Base::init_base", "DFT+U module is only accessible in MPI version");
5352
#endif
5453

5554
this->nspin = nspin;

0 commit comments

Comments
 (0)