add support for adding an ITEM: TIME output to some dump files

This commit is contained in:
Axel Kohlmeyer
2019-09-30 11:03:22 -04:00
parent 6cd460072b
commit 01214de6bd
8 changed files with 35 additions and 3 deletions

View File

@ -260,6 +260,8 @@ void DumpLocal::write_header(bigint ndump)
++unit_count;
fprintf(fp,"ITEM: UNITS\n%s\n",update->unit_style);
}
if (time_flag) fprintf(fp,"ITEM: TIME\n%.16g\n",compute_time());
fprintf(fp,"ITEM: TIMESTEP\n");
fprintf(fp,BIGINT_FORMAT "\n",update->ntimestep);
fprintf(fp,"ITEM: NUMBER OF %s\n",label);