int i;
printf("\nWriting histogram to %s\n", filename);
- sprintf(label_x, "[\\Delta]H (%s)", unit_energy);
+ sprintf(label_x, "\\DeltaH (%s)", unit_energy);
fp=xvgropen_type(filename, title, label_x, label_y, exvggtXNY, oenv);
lambda_t *lc;
int j;
- if (begin<=0 && end<0)
+ if (begin<=0 && end<0)
{
return;
}
}
/* calculate the actual times */
- if (begin > 0)
+ if (begin > 0 )
{
- begin_t = (last_t - first_t)*begin + first_t;
+ begin_t = begin;
}
else
{
if (end >0 )
{
- end_t = (last_t - first_t)*end + first_t;
+ end_t = end;
}
else
{
end_t = last_t;
}
printf("\n Samples in time interval: %.3f - %.3f\n", first_t, last_t);
+
+ if (begin_t > end_t)
+ {
+ return;
+ }
printf("Removing samples outside of: %.3f - %.3f\n", begin_t, end_t);
/* then impose them */