From 915cd9188ee01df63c7488016a3f396ce473cd7d Mon Sep 17 00:00:00 2001 From: sjplimp Date: Wed, 1 Feb 2012 00:01:36 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@7631 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/KIM/pair_kim.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/KIM/pair_kim.cpp b/src/KIM/pair_kim.cpp index 7c4a47bd53..7478dddb9e 100644 --- a/src/KIM/pair_kim.cpp +++ b/src/KIM/pair_kim.cpp @@ -400,14 +400,16 @@ int PairKIM::get_neigh(void **kimmdl,int *mode,int *request, *pRij=&Rij[0]; KIM_API_model *pkim = (KIM_API_model *) *kimmdl; + //get neighObj from KIM API obj - if (key1strun) { //this block will be changed in case of hybride/composite KIM potential + //this block will be changed in case of hybride/composite KIM potential + + if (key1strun) { int kimerr; neighObject_ind = pkim->get_index((char*) "neighObject",&kimerr); self->kim_error(__LINE__,"get_neigh:get_index of : neighObject",kimerr); - NeighList * neiobj = (NeighList * ) (*pkim)[neighObject_ind].data; numberOfAtoms_ind= pkim->get_index((char *) "numberOfAtoms",&kimerr);