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

This commit is contained in:
sjplimp
2012-09-20 15:51:16 +00:00
parent 1235bc0fe7
commit 9316e35a98
6 changed files with 21 additions and 19 deletions

View File

@ -200,7 +200,8 @@ void FixAdapt::init()
Pair *pair = force->pair_match(ad->pstyle,1);
if (pair == NULL) error->all(FLERR,"Fix adapt pair style does not exist");
void *ptr = pair->extract(ad->pparam,ad->pdim);
if (ptr == NULL) error->all(FLERR,"Fix adapt pair style param not supported");
if (ptr == NULL)
error->all(FLERR,"Fix adapt pair style param not supported");
ad->pdim = 2;
if (ad->pdim == 0) ad->scalar = (double *) ptr;