Skip to content

Commit

Permalink
Fix: ut of 283_NO_restart (#1467)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongriTianqi committed Nov 4, 2022
1 parent 05a11ea commit 84324f4
Show file tree
Hide file tree
Showing 10 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/input_conv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ void Input_Conv::Convert(void)
//----------------------------------------------------------
if (INPUT.restart_save)
{
GlobalC::restart.folder = GlobalV::global_out_dir + "restart/";
GlobalC::restart.folder = GlobalV::global_readin_dir + "restart/";
const std::string command0 = "test -d " + GlobalC::restart.folder + " || mkdir " + GlobalC::restart.folder;
if (GlobalV::MY_RANK == 0)
system(command0.c_str());
Expand All @@ -341,7 +341,7 @@ void Input_Conv::Convert(void)
}
if (INPUT.restart_load)
{
GlobalC::restart.folder = GlobalV::global_out_dir + "restart/";
GlobalC::restart.folder = GlobalV::global_readin_dir + "restart/";
if (INPUT.dft_functional == "hf" || INPUT.dft_functional == "pbe0" || INPUT.dft_functional == "hse"
|| INPUT.dft_functional == "opt_orb" || INPUT.dft_functional == "scan0")
{
Expand Down
1 change: 1 addition & 0 deletions tests/integrate/283_NO_restart/INPUT
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ orbital_dir ../../PP_ORB

#restart_save 1
restart_load 1
read_file_dir ./

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 84324f4

Please sign in to comment.