OPM/opm-core — pull request #390 by andlaus (2013-09-24 15:01:05+00:00)
Title: fix the averages wrt negative values and divisions by zero

it could be discussed whether it's better to throw a
std::runtime_error instead...