First, I wanted to say thank you to Ryan for his suggestions concerning implementing my MEAM-type potential into openKIM. His advice and direction has helped me go in a direction that would help me to better facilitate this process.
If I may, I have some technical issues with the neighbor list:
Forgive me if this seems like a fundamental/basic issue, but I am trying to import the following information from openKIM to my potential (the latter of which I am writing in fortran):
- for a given atom i, the number of neighbors within the cutoff radius
- for a given atom i, the number of 1st nearest neighbors (j) atoms
- for the atoms j concerning the above #2, the r_ij component distances
I have the following chunk of code from a fortran file from the openKIM website, and I wanted to further ask if I can obtain my needed info from the following:
ier = kim_api_get_neigh(pkim,1,i,atom_ret,numnei,pnei1atom,
& pRij_list)
if (ier.ne.KIM_STATUS_OK) then ! some sort of problem, exit
idum = kim_api_report_error(LINE, THIS_FILE_NAME,
& “kim_api_get_neigh”, ier)
ier = KIM_STATUS_FAIL
return
endif
call c_f_pointer(pnei1atom, nei1atom, [numnei])
Thank you kindly,
Josh