Now checks for missing TOPS or DEPTHZ in DXV etc. initialization.
This commit is contained in:
parent
1d1dc493e8
commit
ad899fcc10
@ -216,6 +216,10 @@ namespace Opm
|
||||
}
|
||||
top_depths_vec.resize(x.size()*y.size(), tops[0]);
|
||||
top_depths = &top_depths_vec[0];
|
||||
} else {
|
||||
OPM_THROW(std::runtime_error,
|
||||
"Could not find either TOPS or DEPTHZ keyword, "
|
||||
"one of them is required for initialization with DXV/DYV/DZV.");
|
||||
}
|
||||
|
||||
// Construct grid.
|
||||
|
Loading…
Reference in New Issue
Block a user