ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/freemol/branches/sync4pymol12/src/mengine/src/get_mem.c
(Generate patch)
# Line 25 | Line 25
25      } solvent;
26  
27  
28 int *skip;
29
28   /* ================================================================ */
29   void get_memory()
30   {
# Line 34 | Line 32
32      int ntor;
33      int ntypes, found, itype[MAXATOMTYPE];
34      
35 <    skip = ivector(0,natom+1);
35 >    skip = imatrix(0,natom+1,0,natom+1);
36 >    for (i=1; i <= natom; i++)
37 >    {
38 >      for (j=1; j <=natom; j++)
39 >        skip[i][j] = 0;
40 >    }
41  
42      deriv.d1     = dmatrix(0,natom+1, 0,3);
43      deriv.deb    = dmatrix(0,natom+1, 0,3);
# Line 179 | Line 182
182   void free_memory()
183   {
184      int ntor;
185 <    free_ivector(skip, 0, natom+1);      
185 >    free_imatrix(skip, 0, natom+1,0,natom+1);      
186      free_dmatrix(deriv.d1,      0,natom+1, 0,3);
187      free_dmatrix(deriv.deb,     0,natom+1, 0,3);
188      free_dmatrix(deriv.dea,     0,natom+1, 0,3);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines