USER-DPD Kokkos: replicate 7a593c2f bugfix to pair_table_rx_kokkos.cpp

This commit is contained in:
Tim Mattox
2017-03-01 09:49:24 -05:00
parent 3ae77e718a
commit 0982331c71

View File

@ -984,7 +984,7 @@ void PairTableRXKokkos<DeviceType>::coeff(int narg, char **arg)
nspecies = atom->nspecies_dpd;
if(nspecies==0) error->all(FLERR,"There are no rx species specified.");
int n;
n = strlen(arg[3]) + 1;
n = strlen(arg[4]) + 1;
site1 = new char[n];
strcpy(site1,arg[4]);
@ -995,7 +995,7 @@ void PairTableRXKokkos<DeviceType>::coeff(int narg, char **arg)
if (ispecies == nspecies && strcmp(site1,"1fluid") != 0)
error->all(FLERR,"Site1 name not recognized in pair coefficients");
n = strlen(arg[4]) + 1;
n = strlen(arg[5]) + 1;
site2 = new char[n];
strcpy(site2,arg[5]);