fixes bug in suffix handling spotted by coverity scan: CID 134474 and CID 134486
This commit is contained in:
@ -685,13 +685,12 @@ void LAMMPS::post_create(int npack, int *pfirst, int *plast, char **arg)
|
||||
suffix2 = NULL;
|
||||
}
|
||||
|
||||
if (suffix) {
|
||||
if (strcmp(suffix,"gpu") == 0) input->one("package gpu 1");
|
||||
if (strcmp(suffix,"intel") == 0) input->one("package intel 1");
|
||||
if (strcmp(suffix,"omp") == 0) input->one("package omp 0");
|
||||
}
|
||||
if (strcmp(suffix,"gpu") == 0) input->one("package gpu 1");
|
||||
if (strcmp(suffix,"intel") == 0) input->one("package intel 1");
|
||||
if (strcmp(suffix,"omp") == 0) input->one("package omp 0");
|
||||
|
||||
if (suffix2) {
|
||||
if (strcmp(suffix,"omp") == 0) input->one("package omp 0");
|
||||
if (strcmp(suffix2,"omp") == 0) input->one("package omp 0");
|
||||
}
|
||||
|
||||
// invoke any command-line package commands
|
||||
|
||||
Reference in New Issue
Block a user