mirror of
https://github.com/OPM/opm-upscaling.git
synced 2026-08-26 21:17:11 -05:00
add exception handling to upscale_relperm_benchmark
This commit is contained in:
@@ -220,6 +220,7 @@ static void inflate (const unsigned char* input, const int size, stringstream& o
|
||||
}
|
||||
|
||||
int main(int varnum, char** vararg)
|
||||
try
|
||||
{
|
||||
|
||||
// Variables used for timing/profiling:
|
||||
@@ -1776,3 +1777,7 @@ int main(int varnum, char** vararg)
|
||||
|
||||
return 0;
|
||||
}
|
||||
catch (const std::exception &e) {
|
||||
std::cerr << e.what() << "\n";
|
||||
usageandexit();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user