Skip to content

Commit 3757ae1

Browse files
[pre-commit.ci lite] apply automatic fixes
1 parent 90fadcd commit 3757ae1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/module_base/global_file.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ void ModuleBase::Global_File::make_dir_out(
157157
{
158158
std::stringstream ss;
159159
ss << "running_" << keyword;
160-
if (out_alllog) ss << "_" << rank + 1;
160+
if (out_alllog) { ss << "_" << rank + 1;
161+
}
161162
open_log(GlobalV::ofs_running, ss.str(), keyword, restart);
162163
#if defined(__CUDA) || defined(__ROCM)
163164
open_log(GlobalV::ofs_device, "device" + std::to_string(rank), calculation, restart);

0 commit comments

Comments
 (0)