--- src/mdlib/pme.c 2005-10-06 11:58:08.000000000 +0200 +++ gromacs-3.3/src/mdlib/pme.c 2006-02-08 16:16:31.000000000 +0100 @@ -1,5 +1,5 @@ /* - * $Id: pme.c,v 1.61.2.4 2005/10/06 09:58:08 lindahl Exp $ + * $Id: pme.c,v 1.61.2.5 2005/10/13 18:38:04 lindahl Exp $ * * This source code is part of * @@ -521,8 +521,8 @@ range_check(zidx,0,nz); #endif i0 = ii0+xidx; /* Pointer arithmetic */ - norder = n*4; - norder1 = norder+4; + norder = n*order; + norder1 = norder+order; i = ii0[xidx]; j = jj0[yidx]; @@ -922,86 +922,136 @@ int nz,rvec fractx[],ivec idx[],real charge[],int nr) { /* construct splines for local atoms */ - int i,k,l; + int i,j,k,l; real drXX,drYY,drZZ; - real div,rcons; + real dr,div,rcons; real *dataXX,*dataYY,*dataZZ; real *ddataXX,*ddataYY,*ddataZZ; real tmpX,tmpY,tmpZ,lastX,lastY,lastZ; - - for(i=0; (i