Change-Id: Ib3ebe7231e3be0f2bdeda21cf5c589f6d5144c5c
#include <stdio.h>
#include <string.h>
#include <math.h>
+#include <assert.h>
#include "main.h"
#include "macros.h"
#include "futil.h"
int ndr;
ener_file_t in;
gmx_bool bCont;
- gmx_enxnm_t *enm;
+ gmx_enxnm_t *enm=NULL;
t_enxframe *fr;
int i,j,nre,b;
real rav,minthird;
printf("gmxdump: %s\n",fn);
in = open_enx(fn,"r");
do_enxnms(in,&nre,&enm);
+ assert(enm);
printf("energy components:\n");
for(i=0; (i<nre); i++)