Skip to content

Commit 3cd5374

Browse files
[pre-commit.ci lite] apply automatic fixes
1 parent 49f50b6 commit 3cd5374

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
@@ -30,7 +30,7 @@ void ModuleIO::write_vdata_palgrid(
3030
const int& nz = pgrid.nz;
3131
const int& nxyz = nx * ny * nz;
3232

33-
start = time(NULL);
33+
start = time(nullptr);
3434

3535
// reduce
3636
std::vector<double> data_xyz_full(nxyz); // data to be written
@@ -123,7 +123,7 @@ void ModuleIO::write_vdata_palgrid(
123123
}
124124
}
125125
write_cube(fn, comment, ucell->nat, { 0.0, 0.0, 0.0 }, nx, ny, nz, dx, dy, dz, atom_type, atom_charge, atom_pos, data_xyz_full, precision);
126-
end = time(NULL);
126+
end = time(nullptr);
127127
ModuleBase::GlobalFunc::OUT_TIME("write_vdata_palgrid", start, end);
128128
}
129129

0 commit comments

Comments
 (0)