add support for adding an ITEM: TIME output to some dump files
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user