Skip to content

Commit

Permalink
fix: bug of missing head of running.log (#4630)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qianruipku committed Jul 10, 2024
1 parent 1539547 commit 94d0de0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions source/driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ void Driver::init()

time_t time_start = std::time(nullptr);
ModuleBase::timer::start();
// (0) print the start information
this->print_start_info();

// (1) read the input parameters.
// INPUT should be initalized here and then pass to atomic world, mohan
Expand Down Expand Up @@ -124,8 +122,9 @@ void Driver::reading()
ModuleIO::ReadInput read_input(PARAM.sys.myrank);
read_input.read_parameters(PARAM, GlobalV::global_in_card);

// (2) create the output directory
// (2) create the output directory, running_*.log and print info
read_input.create_directory(PARAM);
this->print_start_info();

// (3) write the input file
std::stringstream ss1;
Expand Down
2 changes: 1 addition & 1 deletion source/driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Driver
* This function read the parameter in "INPUT", "STRU" etc,
* and split the MPI world into different groups.
*/
static void reading();
void reading();

/**
* @brief An interface function.
Expand Down

0 comments on commit 94d0de0

Please sign in to comment.