static int Integrate(This *t, real *integral, real *error, real *prob) { bin_t *bins; count dim, comp; int fail; StateDecl; csize_t statesize = sizeof(State) + NCOMP*sizeof(Cumulants) + NDIM*sizeof(Grid); Sized(State, state, statesize); Cumulants *c, *C = state->cumul + t->ncomp; Grid *state_grid = (Grid *)C; Array(Grid, margsum, NCOMP, NDIM); Vector(char, out, 128*NCOMP + 256); if( VERBOSE > 1 ) { sprintf(out, "Vegas input parameters:\n" " ndim " COUNT "\n ncomp " COUNT "\n" ML_NOT(" nvec " NUMBER "\n") " epsrel " REAL "\n epsabs " REAL "\n" " flags %d\n seed %d\n" " mineval " NUMBER "\n maxeval " NUMBER "\n" " nstart " NUMBER "\n nincrease " NUMBER "\n" " nbatch " NUMBER "\n gridno %d\n" " statefile \"%s\"", t->ndim, t->ncomp, ML_NOT(t->nvec,) t->epsrel, t->epsabs, t->flags, t->seed, t->mineval, t->maxeval, t->nstart, t->nincrease, t->nbatch, t->gridno, t->statefile); Print(out); }
static int Integrate(This *t, real *integral, real *error, real *prob) { StateDecl; csize_t statesize = sizeof(State) + NCOMP*sizeof(Result); Sized(State, state, statesize); Array(Var, var, NDIM, 2); Vector(char, out, 128*NCOMP + 256); Region *anchor = NULL, *region = NULL; Result *tot, *Tot = state->totals + t->ncomp; Result *res, *resL, *resR; Bounds *b, *B; cnumber minsamples = IMax(t->nmin, MINSAMPLES); count dim, comp; int fail; if( VERBOSE > 1 ) { sprintf(out, "Suave input parameters:\n" " ndim " COUNT "\n ncomp " COUNT "\n" ML_NOT(" nvec " NUMBER "\n") " epsrel " REAL "\n epsabs " REAL "\n" " flags %d\n seed %d\n" " mineval " NUMBER "\n maxeval " NUMBER "\n" " nnew " NUMBER "\n nmin " NUMBER "\n" " flatness " REAL "\n" " statefile \"%s\"", t->ndim, t->ncomp, ML_NOT(t->nvec,) SHOW(t->epsrel), SHOW(t->epsabs), t->flags, t->seed, t->mineval, t->maxeval, t->nnew, t->nmin, SHOW(t->flatness), t->statefile); Print(out); }