Commit 620e8f7c authored by Timo Koch's avatar Timo Koch
Browse files

[io][spgrid] dune-spgrid does not support zero overlap

parent 4e8af5db
......@@ -58,6 +58,10 @@ public:
*/
void init(const std::string& paramGroup = "")
{
const auto overlap = getParamFromGroup<int>(paramGroup, "Grid.Overlap", 1);
if (overlap == 0)
DUNE_THROW(Dune::NotImplemented, "dune-spgrid does currently not support zero overlap!");
// try to create it from file
if (hasParamInGroup(paramGroup, "Grid.File"))
{
......@@ -78,7 +82,6 @@ public:
cells = getParamFromGroup<IntArray>(paramGroup, "Grid.Cells", cells);
const auto periodic = getParamFromGroup<std::bitset<dim>>(paramGroup, "Grid.Periodic", std::bitset<dim>{});
const auto overlap = getParamFromGroup<int>(paramGroup, "Grid.Overlap", 1);
IntArray spOverlap; spOverlap.fill(overlap);
using Domain = typename Grid::Domain;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment