#ifndef __RUNVEGAS__
#define __RUNVEGAS__

#include<stdio.h>
#include"vegas.h"

extern int runVegas (int init);

extern long get_ncalls (void);
extern int get_iters (void);
extern void set_ncalls (long ncalls);
extern void set_iters (int iteras);

extern int nSess;
extern double rapidity;

extern int WriteVegasGrid (FILE * f);
extern int ReadVegasGrid (FILE * f);

typedef struct vegas_integral
  {
    double s0, s1, s2;
    long nCallTot;
    int n_it;
    int old;
  }
vegas_integral;

extern vegas_integral integral;

#endif
