[gmx-developers] Ang: [gmx-developers] Fatal error: Atomtype'ºÚ?ýew*@??????Ù?' notfound!

Mehmet Suezen suzen at theochem.tu-muenchen.de
Thu Mar 7 15:13:12 CET 2002


David van der Spoel wrote:
> 
> On Thu, 7 Mar 2002, Peter Ahlström wrote:
> 
> >i     0 and at->nr     2 and str Si
> >----------------------------------
> >----------------------------------
> >i     2 and at->nr     2 and str ºÚSýew*@s?????Ù?
> >-----------
> 
> It looks more like a wild pointer to me...
> 
> Groeten, David.

Do you think " at->atomname[i] " points to someting unintented ?
But it more like index i is not increment properly.

Cheerz, Mehmet

src/kernel/toputil.c
-------------------------
/* UTILITIES */

int at2type(char *str,t_atomtype *at)
{
  int i;

  for (i=0; (i<at->nr) && strcasecmp(str,*(at->atomname[i])); i++)
   
  if (i == at->nr)
    fatal_error(0,"Atomtype '%s' not found!",str);

  return i;
}

-------------------



More information about the gromacs.org_gmx-developers mailing list