Standardising the number of frames check.
This commit is contained in:
@ -189,6 +189,7 @@ int main(int argc, char* argv[]) {
|
||||
// data file
|
||||
sprintf(filename,"%s_%%6.6d.dat", data_loc.c_str());
|
||||
|
||||
// total frame number check
|
||||
int totalFrames = 0;
|
||||
|
||||
for (int filei = 0; filei < 3; filei++) {
|
||||
@ -202,13 +203,11 @@ int main(int argc, char* argv[]) {
|
||||
thisfile->close();
|
||||
}
|
||||
|
||||
cout << "totalFrames " << totalFrames << endl;
|
||||
// ok for 006 021 022 044
|
||||
if (totalFrames == 21999 || totalFrames == 22000) {
|
||||
cout << "expected number of frames" << endl;
|
||||
cout << "expected number of frames " << totalFrames << endl;
|
||||
} else {
|
||||
cout << "WARNING unexpected number of frames" << endl;
|
||||
cout << "WARNING code expected 21999/22000 frames" << endl;
|
||||
cout << "unexpected number of frames " << totalFrames << endl;
|
||||
cout << "code expected 21999/22000 frames" << endl;
|
||||
cout << "exiting to make sure you notice" << endl;
|
||||
exit(1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user