Unverified Commit cd846e1b authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

add ITEM: UNITS line to native text format dumps

parent cfd72aac
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -209,6 +209,7 @@ void DumpAtom::header_binary_triclinic(bigint ndump)

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

void DumpAtom::header_item_triclinic(bigint ndump)
{
  fprintf(fp,"ITEM: UNITS %s\n",update->unit_style);
  fprintf(fp,"ITEM: TIMESTEP\n");
  fprintf(fp,BIGINT_FORMAT "\n",update->ntimestep);
  fprintf(fp,"ITEM: NUMBER OF ATOMS\n");
+1 −0
Original line number Diff line number Diff line
@@ -420,6 +420,7 @@ void DumpCustom::header_binary_triclinic(bigint ndump)

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