fix the SparseVector and SparseTable unit tests

also, throw std::logic_error in the OPM_ERROR_IF macro
This commit is contained in:
Andreas Lauser
2013-09-06 13:23:18 +02:00
parent 5d435d396c
commit 4db6760b9d
3 changed files with 15 additions and 9 deletions

View File

@@ -57,6 +57,6 @@
} while (false)
// throw an exception if a condition is true
#define OPM_ERROR_IF(condition, message) do {if(condition){ OPM_THROW(std::runtime_error, message);}} while(false)
#define OPM_ERROR_IF(condition, message) do {if(condition){ OPM_THROW(std::logic_error, message);}} while(false)
#endif // OPM_ERRORMACROS_HPP