more optimizations and extend to other dump styles
This commit is contained in:
@ -131,7 +131,11 @@ void DumpXYZ::write_header(bigint n)
|
||||
{
|
||||
if (me == 0) {
|
||||
fprintf(fp,BIGINT_FORMAT "\n",n);
|
||||
fprintf(fp,"Atoms. Timestep: " BIGINT_FORMAT "\n",update->ntimestep);
|
||||
if (time_flag)
|
||||
fprintf(fp,"Atoms. Timestep: " BIGINT_FORMAT " Time: %f\n",
|
||||
update->ntimestep, update->atime);
|
||||
else
|
||||
fprintf(fp,"Atoms. Timestep: " BIGINT_FORMAT "\n",update->ntimestep);
|
||||
}
|
||||
}
|
||||
|
||||
@ -159,7 +163,6 @@ void DumpXYZ::pack(tagint *ids)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
convert mybuf of doubles to one big formatted string in sbuf
|
||||
return -1 if strlen exceeds an int, since used as arg in MPI calls in Dump
|
||||
|
||||
Reference in New Issue
Block a user