/* $Id$
$State$
$Log$
+ Revision 1.214 2015/12/16 06:57:54 brouard
+ Summary: temporary not working
+
Revision 1.213 2015/12/11 18:22:17 brouard
Summary: 0.98r4
printf("Problem with forecast resultfile: %s\n", fileresf);
fprintf(ficlog,"Problem with forecast resultfile: %s\n", fileresf);
}
- printf("Computing forecasting: result on file '%s' \n", fileresf);
- fprintf(ficlog,"Computing forecasting: result on file '%s' \n", fileresf);
+ printf("Computing forecasting: result on file '%s', please wait... \n", fileresf);
+ fprintf(ficlog,"Computing forecasting: result on file '%s', please wait... \n", fileresf);
if (cptcoveff==0) ncodemax[cptcoveff]=1;
if (mobilav!=0) free_ma3x(mobaverage,1, AGESUP,1,NCOVMAX, 1,NCOVMAX);
fclose(ficresf);
+ printf("End of Computing forecasting \n");
+ fprintf(ficlog,"End of Computing forecasting\n");
+
}
/************** Forecasting *****not tested NB*************/
free_vector(annais,1,n);
/* free_matrix(mint,1,maxwav,1,n);
free_matrix(anint,1,maxwav,1,n);*/
- free_vector(moisdc,1,n);
- free_vector(andc,1,n);
+ /* free_vector(moisdc,1,n); */
+ /* free_vector(andc,1,n); */
/* */
wav=ivector(1,imx);
concatwav(wav, dh, bh, mw, s, agedc, agev, firstpass, lastpass, imx, nlstate, stepm);
/* */
+ free_vector(moisdc,1,n);
+ free_vector(andc,1,n);
+
/* Routine tricode is to calculate cptcoveff (real number of unique covariates) and to associate covariable number and modality */
nbcode=imatrix(0,NCOVMAX,0,NCOVMAX);
/*------------ free_vector -------------*/
/* chdir(path); */
- free_ivector(wav,1,imx);
- free_imatrix(dh,1,lastpass-firstpass+2,1,imx);
- free_imatrix(bh,1,lastpass-firstpass+2,1,imx);
- free_imatrix(mw,1,lastpass-firstpass+2,1,imx);
+ /* free_ivector(wav,1,imx); */ /* Moved after last prevalence call */
+ /* free_imatrix(dh,1,lastpass-firstpass+2,1,imx); */
+ /* free_imatrix(bh,1,lastpass-firstpass+2,1,imx); */
+ /* free_imatrix(mw,1,lastpass-firstpass+2,1,imx); */
free_lvector(num,1,n);
free_vector(agedc,1,n);
/*free_matrix(covar,0,NCOVMAX,1,n);*/
/* printf("ageminpar=%f, agemax=%f, s[lastpass][imx]=%d, agev[lastpass][imx]=%f, nlstate=%d, imx=%d, mint[lastpass][imx]=%f, anint[lastpass][imx]=%f,dateprev1=%f, dateprev2=%f, firstpass=%d, lastpass=%d\n",\
ageminpar, agemax, s[lastpass][imx], agev[lastpass][imx], nlstate, imx, mint[lastpass][imx],anint[lastpass][imx], dateprev1, dateprev2, firstpass, lastpass);
*/
+ free_ivector(wav,1,imx);
+ free_imatrix(dh,1,lastpass-firstpass+2,1,imx);
+ free_imatrix(bh,1,lastpass-firstpass+2,1,imx);
+ free_imatrix(mw,1,lastpass-firstpass+2,1,imx);
+
if (mobilav!=0) {
mobaverage= ma3x(1, AGESUP,1,NCOVMAX, 1,NCOVMAX);