add support for optionally including unit information in standard dump files
This commit is contained in:
@ -209,7 +209,10 @@ void DumpAtom::header_binary_triclinic(bigint ndump)
|
||||
|
||||
void DumpAtom::header_item(bigint ndump)
|
||||
{
|
||||
fprintf(fp,"ITEM: UNITS\n%s\n",update->unit_style);
|
||||
if (unit_flag && !unit_count) {
|
||||
++unit_count;
|
||||
fprintf(fp,"ITEM: UNITS\n%s\n",update->unit_style);
|
||||
}
|
||||
fprintf(fp,"ITEM: TIMESTEP\n");
|
||||
fprintf(fp,BIGINT_FORMAT "\n",update->ntimestep);
|
||||
fprintf(fp,"ITEM: NUMBER OF ATOMS\n");
|
||||
@ -225,7 +228,10 @@ void DumpAtom::header_item(bigint ndump)
|
||||
|
||||
void DumpAtom::header_item_triclinic(bigint ndump)
|
||||
{
|
||||
fprintf(fp,"ITEM: UNITS\n%s\n",update->unit_style);
|
||||
if (unit_flag && !unit_count) {
|
||||
++unit_count;
|
||||
fprintf(fp,"ITEM: UNITS\n%s\n",update->unit_style);
|
||||
}
|
||||
fprintf(fp,"ITEM: TIMESTEP\n");
|
||||
fprintf(fp,BIGINT_FORMAT "\n",update->ntimestep);
|
||||
fprintf(fp,"ITEM: NUMBER OF ATOMS\n");
|
||||
|
||||
Reference in New Issue
Block a user