diff --git a/src/atom_vec.cpp b/src/atom_vec.cpp index 1d2c99dd17..b0e5a11387 100644 --- a/src/atom_vec.cpp +++ b/src/atom_vec.cpp @@ -1876,7 +1876,7 @@ void AtomVec::write_data(FILE *fp, int n, double **buf) int i,j,m,nn,datatype,cols; for (i = 0; i < n; i++) { - fmt::print(fp,"{}",(tagint) ubuf(buf[i][0]).i); + fmt::print(fp,"{}",ubuf(buf[i][0]).i); j = 1; for (nn = 1; nn < ndata_atom; nn++) { @@ -2024,7 +2024,7 @@ void AtomVec::write_vel(FILE *fp, int n, double **buf) int i,j,m,nn,datatype,cols; for (i = 0; i < n; i++) { - fmt::print(fp,"{}",(tagint) ubuf(buf[i][0]).i); + fmt::print(fp,"{}",ubuf(buf[i][0]).i); j = 1; for (nn = 1; nn < ndata_vel; nn++) { diff --git a/src/atom_vec_ellipsoid.cpp b/src/atom_vec_ellipsoid.cpp index 4190f9ff6e..0d8c41da39 100644 --- a/src/atom_vec_ellipsoid.cpp +++ b/src/atom_vec_ellipsoid.cpp @@ -521,9 +521,8 @@ int AtomVecEllipsoid::pack_data_bonus(double **buf, int /*flag*/) void AtomVecEllipsoid::write_data_bonus(FILE *fp, int n, double **buf, int /*flag*/) { for (int i = 0; i < n; i++) { - fmt::print(fp,"{} {} {} {} {} {} {} {}", - (tagint) ubuf(buf[i][0]).i,buf[i][1],buf[i][2],buf[i][3], - buf[i][4],buf[i][5],buf[i][6],buf[i][7]); + fmt::print(fp,"{} {} {} {} {} {} {} {}\n", ubuf(buf[i][0]).i,buf[i][1], + buf[i][2],buf[i][3],buf[i][4],buf[i][5],buf[i][6],buf[i][7]); } } diff --git a/src/atom_vec_line.cpp b/src/atom_vec_line.cpp index 6a368fe2da..8466efcc18 100644 --- a/src/atom_vec_line.cpp +++ b/src/atom_vec_line.cpp @@ -502,9 +502,8 @@ int AtomVecLine::pack_data_bonus(double **buf, int /*flag*/) void AtomVecLine::write_data_bonus(FILE *fp, int n, double **buf, int /*flag*/) { for (int i = 0; i < n; i++) { - fmt::print(fp,"{} {} {} {} {}", - (tagint) ubuf(buf[i][0]).i, - buf[i][1],buf[i][2],buf[i][3],buf[i][4]); + fmt::print(fp,"{} {} {} {} {}\n",ubuf(buf[i][0]).i, + buf[i][1],buf[i][2],buf[i][3],buf[i][4]); } } diff --git a/src/atom_vec_tri.cpp b/src/atom_vec_tri.cpp index 16183995fe..2b518751fe 100644 --- a/src/atom_vec_tri.cpp +++ b/src/atom_vec_tri.cpp @@ -738,10 +738,8 @@ int AtomVecTri::pack_data_bonus(double **buf, int /*flag*/) void AtomVecTri::write_data_bonus(FILE *fp, int n, double **buf, int /*flag*/) { for (int i = 0; i < n; i++) { - fmt::print(fp,"{} {} {} {} {} {} {} {} {} {} {}", - (tagint) ubuf(buf[i][0]).i, - buf[i][1],buf[i][2],buf[i][3], - buf[i][4],buf[i][5],buf[i][6], + fmt::print(fp,"{} {} {} {} {} {} {} {} {} {} {}\n",ubuf(buf[i][0]).i, + buf[i][1],buf[i][2],buf[i][3],buf[i][4],buf[i][5],buf[i][6], buf[i][7],buf[i][8],buf[i][9]); } }