]> henry.ined.fr Git - .git/commitdiff
* (Module): imach.c Someone entered 'results:' instead of 'result:'. Now it is an...
authorN. Brouard <brouard@ined.fr>
Thu, 11 Feb 2021 19:50:15 +0000 (19:50 +0000)
committerN. Brouard <brouard@ined.fr>
Thu, 11 Feb 2021 19:50:15 +0000 (19:50 +0000)
src/imach.c

index 89ca3391355a4fd26f084e92cfe1d0451f846594..fd029ce9070cb19f3532a448e09c81a85b6a8473 100644 (file)
@@ -1,6 +1,10 @@
 /* $Id$
   $State$
   $Log$
+  Revision 1.302  2020/02/22 21:00:05  brouard
+  *  (Module): imach.c Update mle=-3 (for computing Life expectancy
+  and life table from the data without any state)
+
   Revision 1.301  2019/06/04 13:51:20  brouard
   Summary: Error in 'r'parameter file backcast yearsbproj instead of yearsfproj
 
@@ -12490,11 +12494,14 @@ Please run with mle=-1 to get a correct covariance matrix.\n",ageminpar,agemaxpa
          fprintf(ficres,"result: %s\n",resultline);
          fprintf(ficlog,"result: %s\n",resultline);
          break;
-       case 14: 
-         if(ncovmodel >2 && nresult==0 ){
+       case 14:
+         printf("Error: Unknown command '%s'\n",line);
+         fprintf(ficlog,"Error: Unknown command '%s'\n",line);
+         if(ncovmodel >=2 && nresult==0 ){
            printf("ERROR: no result lines! It should be at minimum 'result: V2=0 V1=1 or result:.' %s\n",line);
-           goto end;
+           fprintf(ficlog,"ERROR: no result lines! It should be at minimum 'result: V2=0 V1=1 or result:.' %s\n",line);
          }
+         goto end;
          break;
        default:
          nresult=1;