File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -446,6 +446,11 @@ void FiniteProfileProcess::ReadNcomponent(string filename) {
446
446
}
447
447
int tmpNstate;
448
448
is >> tmpNstate;
449
+ if (tmpNstate != GetDim ()) {
450
+ cerr << " error when reading empirical mixture : incorrect number of states\n " ;
451
+ cerr << " see manual for formatting an empirical mixture\n " ;
452
+ exit (1 );
453
+ }
449
454
for (int k=0 ; k<tmpNstate; k++) {
450
455
string c;
451
456
is >> c;
@@ -915,7 +920,8 @@ void FiniteProfileProcess::ReadStatFix(string filename) {
915
920
int tmp;
916
921
is >> tmp;
917
922
if (tmp != Nstate) {
918
- cerr << " error when reading empirical mixture : bad number of states\n " ;
923
+ cerr << " error when reading empirical mixture : incorrect number of states\n " ;
924
+ cerr << " see manual for formatting an empirical mixture\n " ;
919
925
exit (1 );
920
926
}
921
927
// read alphabet
You can’t perform that action at this time.
0 commit comments