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

This commit is contained in:
sjplimp 2016-02-26 15:56:01 +00:00
parent ea62766575
commit 4f50ad2a6a
1 changed files with 3 additions and 3 deletions
src/MANYBODY

View File

@ -163,11 +163,11 @@ void PairComb3::settings(int narg, char **arg)
if (strcmp(arg[0],"polar_on") == 0) {
pol_flag = 1;
if (comm->me == 0) fprintf(screen,
if (comm->me == 0 && screen) fprintf(screen,
" PairComb3: polarization is on \n");
} else if (strcmp(arg[0],"polar_off") == 0) {
pol_flag = 0;
if (comm->me == 0) fprintf(screen,
if (comm->me == 0 && screen) fprintf(screen,
" PairComb3: polarization is off \n");
} else {
error->all(FLERR,"Illegal pair_style command");
@ -206,7 +206,7 @@ void PairComb3::coeff(int narg, char **arg)
nelements = 0;
for (i = 3; i < narg; i++) {
if ((strcmp(arg[i],"C") == 0) && (cflag == 0)) {
if( comm->me == 0) fprintf(screen,
if( comm->me == 0 && screen) fprintf(screen,
" PairComb3: Found C: reading additional library file\n");
read_lib();
cflag = 1;