Skip to content

Commit 74c8d18

Browse files
committed
no isnan for int
1 parent eaa1061 commit 74c8d18

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/utilities/error.cu

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -162,14 +162,6 @@ int get_int_from_token(const std::string& token, const char* filename, const int
162162
std::cout << " Error message: " << e.what() << std::endl;
163163
exit(1);
164164
}
165-
if (std::isinf(value)) {
166-
std::cout << "This number is inf.\n";
167-
exit(1);
168-
}
169-
if (std::isnan(value)) {
170-
std::cout << "This number is nan.\n";
171-
exit(1);
172-
}
173165
return value;
174166
}
175167

0 commit comments

Comments
 (0)