mirror of https://github.com/lammps/lammps.git
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@9246 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
46287db34f
commit
27c6f67b93
|
@ -88,27 +88,27 @@ Thermo::Thermo(LAMMPS *lmp, int narg, char **arg) : Pointers(lmp)
|
|||
lostbefore = 0;
|
||||
flushflag = 0;
|
||||
|
||||
// line string used for 3 tasks
|
||||
// concat of custom style args
|
||||
// one-time thermo output of header line
|
||||
// each line of numeric thermo output
|
||||
// 256 = extra for ONE or MULTI string or multi formatting
|
||||
// 32 = max per-arg chars in header or numeric output
|
||||
|
||||
line = new char[256+32*narg];
|
||||
|
||||
// set style and corresponding lineflag
|
||||
// custom style builds its own line of keywords
|
||||
// customize a new thermo style by adding to if statement
|
||||
// allocate line string used for 3 tasks
|
||||
// concat of custom style args
|
||||
// one-time thermo output of header line
|
||||
// each line of numeric thermo output
|
||||
// 256 = extra for ONE or MULTI string or multi formatting
|
||||
// 64 = max per-arg chars in header or numeric output
|
||||
|
||||
if (strcmp(style,"one") == 0) {
|
||||
line = new char[256+6*64];
|
||||
strcpy(line,ONE);
|
||||
} else if (strcmp(style,"multi") == 0) {
|
||||
line = new char[256+12*64];
|
||||
strcpy(line,MULTI);
|
||||
lineflag = MULTILINE;
|
||||
|
||||
} else if (strcmp(style,"custom") == 0) {
|
||||
if (narg == 1) error->all(FLERR,"Illegal thermo style custom command");
|
||||
line = new char[256+narg*64];
|
||||
line[0] = '\0';
|
||||
for (int iarg = 1; iarg < narg; iarg++) {
|
||||
strcat(line,arg[iarg]);
|
||||
|
|
Loading…
Reference in New Issue