consistent formatting

This commit is contained in:
Axel Kohlmeyer
2019-09-10 09:36:17 -04:00
parent cd846e1bbb
commit 15d2e1b260
3 changed files with 4 additions and 4 deletions

View File

@ -209,7 +209,7 @@ void DumpAtom::header_binary_triclinic(bigint ndump)
void DumpAtom::header_item(bigint ndump) void DumpAtom::header_item(bigint ndump)
{ {
fprintf(fp,"ITEM: UNITS %s\n",update->unit_style); fprintf(fp,"ITEM: UNITS\n%s\n",update->unit_style);
fprintf(fp,"ITEM: TIMESTEP\n"); fprintf(fp,"ITEM: TIMESTEP\n");
fprintf(fp,BIGINT_FORMAT "\n",update->ntimestep); fprintf(fp,BIGINT_FORMAT "\n",update->ntimestep);
fprintf(fp,"ITEM: NUMBER OF ATOMS\n"); fprintf(fp,"ITEM: NUMBER OF ATOMS\n");
@ -225,7 +225,7 @@ void DumpAtom::header_item(bigint ndump)
void DumpAtom::header_item_triclinic(bigint ndump) void DumpAtom::header_item_triclinic(bigint ndump)
{ {
fprintf(fp,"ITEM: UNITS %s\n",update->unit_style); fprintf(fp,"ITEM: UNITS\n%s\n",update->unit_style);
fprintf(fp,"ITEM: TIMESTEP\n"); fprintf(fp,"ITEM: TIMESTEP\n");
fprintf(fp,BIGINT_FORMAT "\n",update->ntimestep); fprintf(fp,BIGINT_FORMAT "\n",update->ntimestep);
fprintf(fp,"ITEM: NUMBER OF ATOMS\n"); fprintf(fp,"ITEM: NUMBER OF ATOMS\n");

View File

@ -420,7 +420,7 @@ void DumpCustom::header_binary_triclinic(bigint ndump)
void DumpCustom::header_item(bigint ndump) void DumpCustom::header_item(bigint ndump)
{ {
fprintf(fp,"ITEM: UNITS %s\n",update->unit_style); fprintf(fp,"ITEM: UNITS\n%s\n",update->unit_style);
fprintf(fp,"ITEM: TIMESTEP\n"); fprintf(fp,"ITEM: TIMESTEP\n");
fprintf(fp,BIGINT_FORMAT "\n",update->ntimestep); fprintf(fp,BIGINT_FORMAT "\n",update->ntimestep);
fprintf(fp,"ITEM: NUMBER OF ATOMS\n"); fprintf(fp,"ITEM: NUMBER OF ATOMS\n");

View File

@ -256,7 +256,7 @@ int DumpLocal::modify_param(int narg, char **arg)
void DumpLocal::write_header(bigint ndump) void DumpLocal::write_header(bigint ndump)
{ {
if (me == 0) { if (me == 0) {
fprintf(fp,"ITEM: UNITS %s\n",update->unit_style); fprintf(fp,"ITEM: UNITS\n%s\n",update->unit_style);
fprintf(fp,"ITEM: TIMESTEP\n"); fprintf(fp,"ITEM: TIMESTEP\n");
fprintf(fp,BIGINT_FORMAT "\n",update->ntimestep); fprintf(fp,BIGINT_FORMAT "\n",update->ntimestep);
fprintf(fp,"ITEM: NUMBER OF %s\n",label); fprintf(fp,"ITEM: NUMBER OF %s\n",label);