Skip to content

Commit

Permalink
[pre-commit.ci lite] apply automatic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci-lite[bot] committed May 27, 2024
1 parent b530196 commit 039d5a0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
18 changes: 7 additions & 11 deletions source/driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ void Driver::init()
{
ModuleBase::TITLE("Driver", "init");

time_t time_start = std::time(NULL);
time_t time_start = std::time(nullptr);
ModuleBase::timer::start();

// (1) read the input parameters.
Expand All @@ -37,19 +37,18 @@ void Driver::init()
this->atomic_world();

// (3) output information
time_t time_finish = std::time(NULL);
time_t time_finish = std::time(nullptr);
Print_Info::print_time(time_start, time_finish);

// (4) close all of the running logs
INPUT.close_log();

// (5) output the json file
//Json::create_Json(&GlobalC::ucell.symm,GlobalC::ucell.atoms,&INPUT);
Json::create_Json(&GlobalC::ucell,&INPUT);
return;
// Json::create_Json(&GlobalC::ucell.symm,GlobalC::ucell.atoms,&INPUT);
Json::create_Json(&GlobalC::ucell, &INPUT);
}

void Driver::reading(void)
void Driver::reading()
{
ModuleBase::timer::tick("Driver", "reading");

Expand Down Expand Up @@ -83,10 +82,9 @@ void Driver::reading(void)
// ModuleBase::GlobalFunc::DONE(GlobalV::ofs_running,"READING CARDS");

ModuleBase::timer::tick("Driver", "reading");
return;
}

void Driver::atomic_world(void)
void Driver::atomic_world()
{
ModuleBase::TITLE("Driver", "atomic_world");
//--------------------------------------------------
Expand All @@ -100,7 +98,5 @@ void Driver::atomic_world(void)
this->driver_run();

ModuleBase::timer::finish(GlobalV::ofs_running);
ModuleBase::Memory::print_all(GlobalV::ofs_running);

return;
ModuleBase::Memory::print_all(GlobalV::ofs_running);
}
2 changes: 1 addition & 1 deletion source/driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Driver
* This function read the parameter in "INPUT", "STRU" etc,
* and split the MPI world into different groups.
*/
void reading();
static void reading();

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

0 comments on commit 039d5a0

Please sign in to comment.