diff --git a/doc/compute_heat_flux.txt b/doc/compute_heat_flux.txt index 4ab6b58088..4ad4863436 100644 --- a/doc/compute_heat_flux.txt +++ b/doc/compute_heat_flux.txt @@ -169,7 +169,7 @@ run 8000 :pre reset_timestep 0 compute myKE all ke/atom compute myPE all pe/atom -compute myStress all stress/atom virial +compute myStress all stress/atom NULL virial compute flux all heat/flux myKE myPE myStress variable Jx equal c_flux\[1\]/vol variable Jy equal c_flux\[2\]/vol diff --git a/src/GPU/fix_gpu.cpp b/src/GPU/fix_gpu.cpp index d80b0b079a..7431d14a82 100644 --- a/src/GPU/fix_gpu.cpp +++ b/src/GPU/fix_gpu.cpp @@ -103,9 +103,9 @@ FixGPU::FixGPU(LAMMPS *lmp, int narg, char **arg) : while (iarg < narg) { if (strcmp(arg[iarg],"neigh") == 0) { if (iarg+2 > narg) error->all(FLERR,"Illegal package gpu command"); - if (strcmp(arg[iarg]+1,"yes") == 0) _gpu_mode = GPU_NEIGH; - else if (strcmp(arg[iarg]+1,"no") == 0) _gpu_mode = GPU_FORCE; - else if (strcmp(arg[iarg]+1,"hybrid") == 0) _gpu_mode = GPU_HYB_NEIGH; + if (strcmp(arg[iarg+1],"yes") == 0) _gpu_mode = GPU_NEIGH; + else if (strcmp(arg[iarg+1],"no") == 0) _gpu_mode = GPU_FORCE; + else if (strcmp(arg[iarg+1],"hybrid") == 0) _gpu_mode = GPU_HYB_NEIGH; else error->all(FLERR,"Illegal package gpu command"); iarg += 2; } else if (strcmp(arg[iarg],"newton") == 0) {