fixing jenkins warning.

This commit is contained in:
Kai Bao 2017-10-16 19:08:12 +02:00
parent ba8eb708d1
commit 6b00d912c3

View File

@ -50,8 +50,8 @@ namespace mswellhelpers
// Checking if there is any inf or nan in y
// it will be the solution before we find a way to catch the singularity of the matrix
for (int i_block = 0; i_block < y.size(); ++i_block) {
for (int i_elem = 0; i_elem < y[i_block].size(); ++i_elem) {
for (size_t i_block = 0; i_block < y.size(); ++i_block) {
for (size_t i_elem = 0; i_elem < y[i_block].size(); ++i_elem) {
if (std::isinf(y[i_block][i_elem]) || std::isnan(y[i_block][i_elem]) ) {
OPM_THROW(Opm::NumericalProblem, "nan or inf value found in invDXDirect due to singular matrix");
}