add support for optionally including unit information in standard dump files
This commit is contained in:
@ -420,7 +420,10 @@ void DumpCustom::header_binary_triclinic(bigint ndump)
|
||||
|
||||
void DumpCustom::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");
|
||||
@ -436,6 +439,10 @@ void DumpCustom::header_item(bigint ndump)
|
||||
|
||||
void DumpCustom::header_item_triclinic(bigint ndump)
|
||||
{
|
||||
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