Skip to content

Commit 1260380

Browse files
committed
bugfix
1 parent 2d004b2 commit 1260380

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/SZ3/utils/FileUtil.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ namespace SZ {
4646
std::ifstream fin(file, std::ios::binary);
4747
if (!fin) {
4848
std::cout << " Error, Couldn't find the file: " << file << "\n";
49-
return;
49+
exit(0);
5050
}
5151
fin.seekg(0, std::ios::end);
5252
const size_t num_elements = fin.tellg() / sizeof(Type);
@@ -61,7 +61,7 @@ namespace SZ {
6161
std::ifstream fin(file, std::ios::binary);
6262
if (!fin) {
6363
std::cout << " Error, Couldn't find the file: " << file << "\n";
64-
return 0;
64+
exit(0);
6565
}
6666
fin.seekg(0, std::ios::end);
6767
const size_t num_elements = fin.tellg() / sizeof(Type);

0 commit comments

Comments
 (0)