sfree(model[nwm]);
}
}
- fclose(fp);
+ ffclose(fp);
fprintf(stderr,"%2d: %s\n",nwm+1,"None");
do
else
{
strncpy(ffdir_parent,ffdir,STRLEN-1);
+ ffdir_parent[STRLEN-1]='\0'; /*make sure it is 0-terminated even for long string*/
p=strrchr(ffdir_parent,'/');
*p='\0';
}
}
-static gmx_bool inter_res_bond(const t_rbonded *b)
-{
- return (b->AI[0] == '-' || b->AI[0] == '+' ||
- b->AJ[0] == '-' || b->AJ[0] == '+');
-}
-
static void at2bonds(t_params *psb, t_hackblock *hb,
t_atoms *atoms,
rvec x[],
int nres = atoms->nres;
gmx_bool bAddCMAP;
atom_id cmap_atomid[NUM_CMAP_ATOMS];
- int cmap_chainnum, this_residue_index;
+ int cmap_chainnum=-1, this_residue_index;
if (debug)
ptr = "cmap";