]> henry.ined.fr Git - .git/commitdiff
Summary: Adding digits in output parameters (7 digits instead of 6)
authorN. Brouard <brouard@ined.fr>
Tue, 5 May 2015 08:51:13 +0000 (08:51 +0000)
committerN. Brouard <brouard@ined.fr>
Tue, 5 May 2015 08:51:13 +0000 (08:51 +0000)
Fix 1+age+.

src/imach.c

index ba83962fdcb8d6fe77ef1b0b4f485e8d9320442f..4d16e5bec68b221640c2839eb7d03dfe73b26ec1 100644 (file)
@@ -1,6 +1,9 @@
 /* $Id$
   $State$
   $Log$
+  Revision 1.189  2015/04/30 14:45:16  brouard
+  Summary: 0.98q2
+
   Revision 1.188  2015/04/30 08:27:53  brouard
   *** empty log message ***
 
@@ -6395,7 +6398,8 @@ int main(int argc, char *argv[])
   fprintf(ficparo,"title=%s datafile=%s lastobs=%d firstpass=%d lastpass=%d\nftol=%e stepm=%d ncovcol=%d nlstate=%d ndeath=%d maxwav=%d mle=%d weight=%d\nmodel=1+age+%s.\n", title, datafile, lastobs, firstpass,lastpass,ftol,stepm,ncovcol,nlstate,ndeath,maxwav, mle, weightopt,model);
   fprintf(ficlog,"title=%s datafile=%s lastobs=%d firstpass=%d lastpass=%d\nftol=%e stepm=%d ncovcol=%d nlstate=%d ndeath=%d maxwav=%d mle=%d weight=%d\nmodel=1+age+%s.\n", title, datafile, lastobs, firstpass,lastpass,ftol,stepm,ncovcol,nlstate,ndeath,maxwav, mle, weightopt,model);
   fflush(ficlog);
-  if(model[0]=='#'|| model[0]== '\0'){
+  /* if(model[0]=='#'|| model[0]== '\0'){ */
+  if(model[0]=='#'){
     printf("Error in 'model' line: model should start with 'model=1+age+' and end with '.' \n \
  'model=1+age+.' or 'model=1+age+V1.' or 'model=1+age+age*age+V1+V1*age.' or \n \
  'model=1+age+V1+V2.' or 'model=1+age+V1+V2+V1*V2.' etc. \n");         \
@@ -7106,9 +7110,9 @@ Interval (in months) between two waves: Min=%d Max=%d Mean=%.2lf<br>\n",\
          fprintf(ficlog,"%d%d ",i,k);
          fprintf(ficres,"%1d%1d ",i,k);
          for(j=1; j <=ncovmodel; j++){
-           printf("%lf ",p[jk]);
-           fprintf(ficlog,"%lf ",p[jk]);
-           fprintf(ficres,"%lf ",p[jk]);
+           printf("%12.7f ",p[jk]);
+           fprintf(ficlog,"%12.7f ",p[jk]);
+           fprintf(ficres,"%12.7f ",p[jk]);
            jk++; 
          }
          printf("\n");