git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@15426 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2016-08-03 16:09:38 +00:00
parent 56502c7c09
commit 38226b8086
11 changed files with 284 additions and 86 deletions

View File

@ -45,13 +45,14 @@ void DumpAtom::init_style()
if (image_flag == 0) size_one = 5;
else size_one = 8;
// default format depends on image flags
// format = copy of default or user-specified line format
// default depends on image flags
delete [] format;
if (format_user) {
int n = strlen(format_user) + 2;
if (format_line_user) {
int n = strlen(format_line_user) + 2;
format = new char[n];
strcpy(format,format_user);
strcpy(format,format_line_user);
strcat(format,"\n");
} else {
char *str;