Merge pull request #1152 from atgeirr/conditional-output

Only push non-empty data to output.
This commit is contained in:
Atgeirr Flø Rasmussen
2017-04-19 13:05:02 +02:00
committed by GitHub

View File

@@ -478,6 +478,10 @@ namespace Opm
const std::string& name,
const V& vec )
{
if (vec.size() == 0) {
return;
}
typedef std::vector< double > OutputVectorType;
// get data map