Skip to content

Commit cb5268d

Browse files
[pre-commit.ci lite] apply automatic fixes
1 parent e64c535 commit cb5268d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/module_io/write_cube.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ void ModuleIO::write_grid(
4444
const int& nz = pgrid.nz;
4545
const int& nxyz = nx * ny * nz;
4646

47-
start = time(NULL);
47+
start = time(nullptr);
4848

4949
// reduce
5050
std::vector<double> data_xyz_full(nxyz); // data to be written
@@ -143,7 +143,7 @@ void ModuleIO::write_grid(
143143
}
144144
auto cube_info = CubeInfo(comment, ucell->nat, { 0.0, 0.0, 0.0 }, { nx, ny, nz }, axis_vecs, atom_type, atom_charge, atom_pos, data_xyz_full, true);
145145
write_cube(fn, cube_info, precision);
146-
end = time(NULL);
146+
end = time(nullptr);
147147
ModuleBase::GlobalFunc::OUT_TIME("write_grid", start, end);
148148
}
149149

0 commit comments

Comments
 (0)