Very confusing error message
I'm trying to create a simplex grid from the lowerLeft
vector, the upperRight
vector, and an elements
vector.
Here's what I do, in short form:
#include <dune/alugrid/grid.hh>
#include <dune/grid/common/gridfactory.hh>
using Grid = Dune::ALUGrid<2, 2, Dune::simplex, Dune::nonconforming>;
Dune::StructuredGridFactory<Grid>::createSimplexGrid(
lowerLeft, upperRight, elements);
This gives me the very confusing message
Dune reported error: DGFException [DGFGridFactory:.../dune-grid/dune/grid/io/file/dgfparser/dgfgridfactory.hh:52]: DGF factories using old MacroGrid implementationdon't support creation from std::istream.
The fix for that is to add
#include <dune/alugrid/dgf.hh>
but I find that very unexpected because I'm not directly using dgf. This is on the releases/2.4
branch but I believe it would happen on releases/2.5
, too. Am I doing something wrong?