mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
convert THROW to OPM_THROW
This commit is contained in:
parent
068519bd19
commit
e8458e9a23
@ -84,7 +84,7 @@ main(int argc, char** argv)
|
|||||||
{
|
{
|
||||||
const bool use_reorder = param.getDefault("use_reorder", true);
|
const bool use_reorder = param.getDefault("use_reorder", true);
|
||||||
if (!use_reorder) {
|
if (!use_reorder) {
|
||||||
THROW("Cannot use implicit transport solver without UMFPACK. "
|
OPM_THROW(std::runtime_error, "Cannot use implicit transport solver without UMFPACK. "
|
||||||
"Either reconfigure opm-core with SuiteSparse/UMFPACK support and recompile, "
|
"Either reconfigure opm-core with SuiteSparse/UMFPACK support and recompile, "
|
||||||
"or use the reordering solver (use_reorder=true).");
|
"or use the reordering solver (use_reorder=true).");
|
||||||
}
|
}
|
||||||
@ -193,7 +193,7 @@ main(int argc, char** argv)
|
|||||||
create_directories(fpath);
|
create_directories(fpath);
|
||||||
}
|
}
|
||||||
catch (...) {
|
catch (...) {
|
||||||
THROW("Creating directories failed: " << fpath);
|
OPM_THROW(std::runtime_error, "Creating directories failed: " << fpath);
|
||||||
}
|
}
|
||||||
std::string filename = output_dir + "/epoch_timing.param";
|
std::string filename = output_dir + "/epoch_timing.param";
|
||||||
epoch_os.open(filename.c_str(), std::fstream::trunc | std::fstream::out);
|
epoch_os.open(filename.c_str(), std::fstream::trunc | std::fstream::out);
|
||||||
@ -246,7 +246,7 @@ main(int argc, char** argv)
|
|||||||
simtimer.init(*deck);
|
simtimer.init(*deck);
|
||||||
} else {
|
} else {
|
||||||
if (epoch != 0) {
|
if (epoch != 0) {
|
||||||
THROW("No TSTEP in deck for epoch " << epoch);
|
OPM_THROW(std::runtime_error, "No TSTEP in deck for epoch " << epoch);
|
||||||
}
|
}
|
||||||
simtimer.init(param);
|
simtimer.init(param);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user